懒得说了
2023-12-24 21:15:15
发布于:广东
17阅读
0回复
0点赞
#include <iostream>
using namespace std;
void diamond(char s){
cout << " " << s << " " << endl;
cout << " " << s << s << s << " " << endl;
cout << s << s << s << s << s << endl;
cout << " " << s << s << s << " " << endl;
cout << " " << s << " " << endl;
return ;
}
int main(){
char s;
cin >> s;
diamond(s);
return 0;
}
这里空空如也
有帮助,赞一个