Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n, m;
- cin >> n >> m;
- for (int i = 0; i < n; i++) {
- for (int j = 0; j < m; j++) {
- if (j == 0 || j == m - 1)
- cout << 'x';
- else if (i == 0)
- cout << 'x';
- else if (i == n - 1)
- cout << 'x';
- else
- cout << ' ';
- }
- cout << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement