#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)
find=10;
printf("x=%d\n",x);
x++;
}
return 0;
}```
“`
本程序是通过一个改错题而来,在本题中注意等于和赋值的区别,while语句后面不用加分好
心得体会:经过不断的调试,慢慢的会想结果靠近