/* C program to find perfect number between 1 and 500
https://thefellowprogrammer.blogspot.com */
#include <stdio.h>
#include <math.h>
int main()
{
int start=1;
printf("Perfect Squares are: \n");
while(start<500){ //change 500 to any n
// <---****--- https://thefellowprogrammer.blogspot.com ------*****----->
if (sqrt(start) == (int)sqrt(start)) {
printf("%d ",start);
}
start++;
}
return 0;
}