#include "iostream" #include "algorithm" #include "cstdio" using namespace std; int main() { int n; while (cin >> n) { if (n == 0) break; for (int i = 1; i <= n; i++) { printf("*"); for (int j = 1; j <= n; j++) printf(" "); printf("*"); cout << endl; } for(int i=1;i<=n+2;i++) printf("*"); cout << endl; for (int i = 1; i <= n; i++) { printf("*"); for (int j = 1; j <= n; j++) printf(" "); printf("*"); cout << endl; } cout << endl; } return 0; }
0.0分
1 人评分