习题6 6.3

来源:互联网 发布:淘宝网投诉电话转人工 编辑:程序博客网 时间:2024/06/05 19:25
#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;      }    }}

运行结果如下:

原创粉丝点击