#include <stdio.h>
int main()
{
int x=1,find=0;
while(!find)
{
x++;
if(x%2==1&&x%3==2&&x%5==4&&x%6==5&&x%7==0)
{
printf("x=%d\n",x);
find=1;
}
}
return 0;
}
注意:
1.赋值与恒等于的区别;
2.看不懂,没印象的即使百度查询,!find相当于find==0。