Switch 2 Dynamic
Pages
Home
Questions & Answers
Tutorials
Programming
Tips & Tricks
About
Blog/Website
Sunday, April 13, 2014
Find the perfect square number in C programming
Find the perfect square number in C programming
#include<stdio.h>
int main()
{
int i, m = 4, n = 2000;
printf("The Perfect Sqaure Number are:: \n");
for(i = 2; m < n; i++)
{
m = i*i;
if(m > n)
break;
printf("%d\n",m);
}
return 0;
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment