Saturday, 10 December 2011

Write a program to print the square of given numbers in c

#include
#include
main()
{
int i,n;
clrscr();
for(i=1;i<=7;i++)
printf("\n%d",i*i);
getch();
}

OUTPUT
1
4
9
16
25
36
49

No comments:

Post a Comment