2 solutions
-
1
#include<iostream> using namespace std; int main(){ int n; cin >> n; for (int i = 1; i <= n; i++) cout << "*"; cout << endl; for (int j = 1; j <= n; j++){ cout << "*"; for (int p = 1; p <= n - 2; p++) cout << " "; cout << "*"; cout << endl; } for (int i = 1; i <= n; i++) cout << "*"; return 0; }
Information
- ID
- 45
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 235
- Accepted
- 113
- Uploaded By