Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int vali[13][13] = { // 1 = Sein 0 = Vaba ruum
- { 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 },
- { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
- { 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 0, 2, 0, 2, 0, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1 },
- { 1, 0, 1, 0, 1, 2, 2, 2, 1, 0, 1, 0, 1 },
- { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
- { 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1 },
- { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
- { 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 }
- };
- for (int i = 0; i < 13; i++)
- {
- for (int j = 0; j < 13; j++)
- {
- if (vali[i][j] == 1)
- {
- cout << "X";
- }
- else if (vali[i][j] == 2)
- {
- cout << "X";
- }
- else
- {
- cout << " ";
- }
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement