求助大佬,本代码无输出
查看原帖
求助大佬,本代码无输出
682471
封禁用户楼主2022/6/9 13:08

RT,运行这段代码,不管输入什么都没有输出。是不是for循环出了问题

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	cin>>n;
	for(int i=n;i<0;i--){
		for(int j=1;j<=i;j++){
			if(j>=1 && j<=9) cout<<"0";
			cout<<j;
		}
		cout<<endl;
	}
	return 0;
}
2022/6/9 13:08
加载中...