//while 循环语句
int main()
{
int line = 0;
int A = 1;
printf("我要每天敲一行代码,积累5000行代码为止\n");
while (line < 30) //天数
{
//line++;
line = A++; //++在前先自增后使用,++在后先使用后自增
printf("我要继续努力敲代码第%d天\n", line); //30
printf("%d\n", A); //31
}
if (line >30) //天数
printf("已完成代码行数,可以拿到好的offer");
return 0;
}
04-03
3316
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-11
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-12
5171
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-22
3564
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)