小学生求大神指教
// #include<stdio.h>#include<math.h>
int main (void)
{
int i;
int x;
int y;
for(i=1;i<100000;i++)
{
x=sqrt(i+100);
y=sqrt(i+268);
if(i==x*x-100&&i==y*y-268)
printf("%d\n",i);
}
return 0;
本人刚自学c语言 有没有大神告诉我这个程序有什么问题 多谢指教!!
2016-04-24 23:22
2016-04-24 23:30
2016-04-25 00:10
2016-04-25 11:46
2016-04-25 12:45