我这哪错了?
查看原帖
我这哪错了?
1303373
zhoumingkai楼主2024/3/30 20:11
#include<bits/stdc++.h>
using namespace std;
int main(){
	int i,j;
	string s;
	getline(cin,s);
	for(i=1;i<=3;i++){
		for(j=0;j<= 3 - i;j++){
			cout<<" ";
		}
		for(j=1;j<=2 *i-1;j++){
			cout<<s;
		}
		cout<<endl;
	}
}

2024/3/30 20:11
加载中...