Answer to Question #222951 in C for unnah

Question #222951

write a program that displys a square of numbers and count them in the following form (CL02) 100 81 64 49 36 25 16


1
Expert's answer
2021-08-04T02:04:53-0400
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>


int main()
{
	int n;//starting from N*N to 1*1
	printf("Please enter N: ");
	scanf("%i", &n);
	for (int i = n; i > 0; i--)
		printf("%i  ", i * i);
	printf("\n\n");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS