C CODE FOR FINDING THE PERFECT SQUARE NUMBERS UPTO A RANGE
#include<stdio.h>
#include<conio.h>
int main()
{
int a,i=1,f=1;
printf("THE RANGE UPTO WHICH YOU WANT PERFECT SQAURE NUMBERS : \n");
scanf("%d",&a);
while(i<a)
{
if(i==f*f)
{
printf("%d \n",i);
f++;
}
i++;
}
}
Comments
Post a Comment