跟奥巴马一起画方块

题源

团体程序设计天梯赛

题解

#include<iostream>
using namespace std;
char c;
float N;
int main(){
    cin >> N >> c;
    for(int i = 0;i < N/2;i++){
        for(int j = 0;j < N;j++)cout << c;
        cout << endl;
    }
    return 0;
}
posted @ 2021-04-23 13:11  summeriver13  阅读(88)  评论(0)    收藏  举报