11. 数字测试

创建日期:2024-07-13
更新日期:2025-02-01

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";
}