Untitled
Anonymous
c_cpp
10/15/2023 9:19 AM
516 B
15
Indexable
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int W, H;
cin >> W >> H;
for (int i = 0; i < H; i++) {
cout << "#";
}
cout << "\n";
for (int w = 0; w < W - 2; w++) {
cout << "#";
for (int h = 0; h < H - 2; h++) {
cout << " ";
}
cout << "#";
cout << "\n";
}
for (int i = 0; i < H; i++) {
cout << "#";
}
}
Editor is loading...