#include<stdio.h>
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;
x++;
}
}
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;
x++;
}
}
} 心得体会:赋值号的左边必须是一个左值(可以改变的值的变量)