3286 - 图形打印正方形
输入一个n,输出一个n*n的正方形图形。
输入
2
输出
##
##
输入
5
输出
#####
Input
Output
Examples
Input
Output
Solution C++
#include<iostream> using namespace std; int main() { int n; cin>>n; for (int i=1; i<=n; i++) { for (int j=1; j<=n; j++) cout<<"#"; cout<<endl; } return 0; }