题解 | #牛牛的字符菱形#

牛牛的字符菱形

https://www.nowcoder.com/practice/11a5040fa894430f9d25fda1be37ddc8

#include <iostream>
using namespace std;

int main() {
    char x;
    cin>>x;
    cout<<"  "<<x<<endl<<" "<<x<<x<<x<<endl<<x<<x<<x<<x<<x<<endl<<" "<<x<<x<<x<<endl<<"  "<<x;
}
// 64 位输出请用 printf("%lld")

终于有一道没改过的经典题了!!!

全部评论

相关推荐

11-20 15:03
四川大学 Java
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务