#include<stdio.h>
main()
{
int x=1,find=0;
while(!find)
{
if(x%2==1&&x%3==2&&x%5==4&&x%6==5&&x%7==0)
{
printf("x=%d\n",x);
find=1;
}
x++;
}
return 0;
}
这个代码运行结果为
知识点:
1.=与==的区别;
2.代码在{}里面与外面的区别;
心得体会
1.了解代码在{}里面与外面的区别。