- laiyuan 的博客
打印字符(print)
- @ 2025-12-2 18:40:28
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("print.in","r",stdin);
freopen("print.out","w",stdout);
int a;
char b;
cin>>a>>b;
for(int i=1;i<=a;i++){
for(int j=1;j<=i;j++){
cout<<b;
}
cout<<endl;
}
return 0;
}