题解 | #牛牛的字符菱形#
牛牛的字符菱形
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")
终于有一道没改过的经典题了!!!