Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void kula(int N, int M)
- {
- char tab[((6 + 2 * M) * N - 1)][((6 + 2 * M) * N + 1)];
- for (int i = 0; i < ((6 + 2 * M) * N - 1); i++)
- {
- for (int j = 0; j < ((6 + 2 * M) * N + 1); j++)
- {
- tab[i][j] = '*';
- }
- }
- tab[(((6 + 2 * M) * N - 2) / 2)][(((6 + 2 * M) * N) / 2)] = 'X';
- for (int i = 0; i < ((6 + 2 * M) * N - 1); i++)
- {
- for (int j = 0; j < ((6 + 2 * M) * N + 1); j++)
- {
- cout << tab[i][j];
- }
- cout << endl;
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement