#include <stdio.h>
int main()
{
int num = 0;
while (1)//while(1)代表的是无限循环
{
if (num % 2 == 1 && num % 3 == 2 && num % 5 == 4 && num % 6 == 5 && num % 7 == 0)
break;
num++;
}
printf("最小且符合这些条件的阶梯数为 %d", num);
return 0;
}
11-11
2868
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)