Jobs & Education
C Programming

Write a c program to print squares of all numbers from 1 to 100 inclusive?

Answer

Wiki User
02/09/2009

int i;

for (i=1; i<=100; ++i) printf ("%d^2=%d\n", i, i*i);