#include <iostream>
using namespace std;
int main()
{
int a=0;
int b=0;
int count=0;
for(a=21;a<=50;a+=2)
{
count++;
}
cout<<count<<endl;
return 0;
}
蓝桥杯真题刷题6.隔行变色
于 2024-02-02 17:12:07 首次发布
这篇文章展示了如何在C++中编写一个简单的程序,使用for循环计数从21到50的所有整数,输出计数值。

600

被折叠的 条评论
为什么被折叠?



