6.3

来源:互联网 发布:c语言如何读取字符串 编辑:程序博客网 时间:2024/05/22 06:38
#include<stdio.h>int main(){    int x=1,find=0;    while(1)    {        if(x>3000)continue;        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++;        }    }    return 0;}

测试结果:

知识点:continue