Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int x,y;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if (((y == 1 || y == 2) && (x >= 1 && x <= 9))
- || (y == 10 && (x == 1 || x <= 5))
- || ((y > 2 && y < 10) && (x == 5 || x == 6)))
- {
- cout << "J";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if (((y == 1 || y==2 || y==9 || y==10) && (x >=1 && x <=9))
- || ((y > 3 || y < 9) && (x <=2 || x==8 || x == 9)))
- {
- cout << "O";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if ((y == 1 && (x <= 2 || x == 8 || x == 9))
- || (y == 2 && (x <= 3 || x == 8 || x == 9))
- || ((y == 3 || y == 4) && (x <= 4 || x == 8 || x == 9))
- || (y == 5 && (x <= 2 || (x >= 4 && x <= 6) || x == 8 || x == 9))
- || (y == 6 && (x <= 2 || (x >= 4 && x <= 6) || x == 8 || x == 9))
- || (y == 7 && (x <= 2 || (x >= 5 && x <= 6) || x == 8 || x == 9))
- || ((y == 8 || y == 9) && (x <= 2 || (x >= 6 && x <= 9)))
- || (y == 10 && (x <= 2 || (x >= 7 && x <= 9)))) {
- cout << "N";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if ((y == 1 && (x >=2 && x <=8))
- || ((y == 2 || y == 6 || y==7) && (x >=1 || x <= 9))
- || ((y == 3 || y == 4 || y==5 || y==8 || y==9 || y==10) && (x <= 2 || x == 8 || x == 9)))
- {
- cout << "A";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if (((y == 1 || y==2) && (x >=1 && x <=9))
- || ((y > 2 || y <= 10) && (x ==5 || x ==6)))
- {
- cout << "T";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if (((y <= 3 || y>=6) && (x <=2 || x ==8 || x==9))
- || ((y == 4 || y == 5) && (x >=1 || x <= 9)))
- {
- cout << "H";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if ((y == 1 && (x >=2 && x <=8))
- || ((y == 2 || y == 6 || y==7) && (x >=1 || x <= 9))
- || ((y == 3 || y == 4 || y==5 || y==8 || y==9 || y==10) && (x <= 2 || x == 8 || x == 9)))
- {
- cout << "A";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- for (y = 1; y <= 10; y++) {
- for (int x = 1; x <= 9; x++) {
- if ((y == 1 && (x <= 2 || x == 8 || x == 9))
- || (y == 2 && (x <= 3 || x == 8 || x == 9))
- || ((y == 3 || y == 4) && (x <= 4 || x == 8 || x == 9))
- || (y == 5 && (x <= 2 || (x >= 4 && x <= 6) || x == 8 || x == 9))
- || (y == 6 && (x <= 2 || (x >= 4 && x <= 6) || x == 8 || x == 9))
- || (y == 7 && (x <= 2 || (x >= 5 && x <= 6) || x == 8 || x == 9))
- || ((y == 8 || y == 9) && (x <= 2 || (x >= 6 && x <= 9)))
- || (y == 10 && (x <= 2 || (x >= 7 && x <= 9)))) {
- cout << "N";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement