write a program that displys a square of numbers and count them in the following form (CL02) 100 81 64 49 36 25 16
#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;
}
Comments
Leave a comment