Home > Back-end >  C, bosses teach!
C, bosses teach!

Time:12-24

Beginners, will not do the following question, please grant instruction!

CodePudding user response:

For your reference
 
# define _CRT_SECURE_NO_WARNINGS
#include
#include
#include

Int isSquare (int n)
{
Double c=SQRT (n);
If (c==(int), c)
return 1;
The else
return 0;
}

Int main ()
{
Int I, n=9999;
for (i=0; I & lt; n; I++)
{
If (isSquare (I + 100) & amp; & IsSquare (I + 168))
Printf (" % d \ n ", I);
}

system("pause");
return 0;
}