A75675.文字矩形
2026-01-23 20:25:42
发布于:浙江
8阅读
0回复
0点赞
#include<bits/stdc++.h>//用万能头文件是一个好习惯
#define ll long long//初学者不用写
using namespace std;//命名空间
int main(){//主函数
ios::sync_with_stdio(false);//初学者只要知道这叫输入输出保底
cin.tie(0);
cout.tie(0);
int n,m;//定义
char c;//定义
cin>>n>>m>>c;//输入
for(int i=1;i<=n;i++){//遍历行
for(int j=1;j<=m;j++){//遍历列
cout<<c;//输出字符
}
cout<<"\n";//"\n"=endl=换行
}
return 0;//好习惯
}
这里空空如也








有帮助,赞一个