A37118. 要求:设计一个程序,使用while循环输出1到100这些数字。
填空题
较易
知识点
题目描述
要求:
设计一个程序,使用while循环输出1到100这些数字。
参考答案
#include <iostream>
using namespace std;
int main (){
int a = 1;
while( a <=100 )
{
cout << "a 的值:" << a << endl;
a++;
}
return 0;
}
上一题
下一题