C++语言开发示例:11. 数字测试
2024-07-13 16:11:59 2025-02-01 20:26:21 李腾 23 次阅读 0 次点赞
num_test.cpp
#include<iostream>
int main()
{
using namespace std;
cout << "Enter the starting countdown value: ";
int limit;
cin >> limit;
int i;
for(i = limit; i; i--)
cout << "i = " << i << "\n";
cout << "Done now that i = " << i << "\n";
}
本文由人工编写,AI优化,请仔细甄别,转载请注明转自www.hylab.cn,原文地址:C++语言开发示例:11. 数字测试