#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。