计算共有多少台阶

来源:互联网 发布:淘宝怎么删除好评价 编辑:程序博客网 时间:2024/04/29 07:21
#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语句后面不用加分好

心得体会:经过不断的调试,慢慢的会想结果靠近

阅读全文
0 0