Translate

Labels

Saturday, 27 April 2013

ALL PERFECT SQUARE BELOW 1000

/*PROGRAM TO PRINT ALL PERFECT SQUARES BELOW 1000*/
#include<stdio.h>
main()
{
int i=1;
printf("The perfect squares below 1000 are\n");
while(i*i<1000)
{
printf("%5d",i*i);
i++;
}
getch();
}

No comments: