Friday, April 11, 2014

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
");

while(i*i<1000)
{
printf("%5d",i*i);
i++;
}
getch();
}


0 comments:

Post a Comment

 

Information Technology News Copyright © 2016 | Powered by Blogger