top1编程
← 返回题目
题解

【入门】循环输出100~1之间的每个数

1 条题解

  • 0
    @ 2026-7-28 22:10:00
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int i=100;
    	while(i>=1){
    		cout<<i<<endl;
    		i--;
    	}
    }
    
    • 1