#include <iostream>
#include <math.h>
#include <locale.h>
using namespace std;
void main()
{
setlocale(LC_ALL, "Russian");
int a=0, b=0;
bool pr;
while (a < 100)
pr = false;
cout << "Введите координаты - x, y: ";
cin >> a >> b;
system("cls");
for (int x = 1; x <= 3; x++)
for (int y = 6; y <= 8; y++)
if (a == x && b == y)
pr = true;
}
for (int x = 3; x <= 5; x++)
for (int y = 2; y <= 6; y++)
for (int x = 5; x <= 7; x++)
cout << pr << endl;
#include <iostream>
#include <math.h>
#include <locale.h>
using namespace std;
void main()
{
setlocale(LC_ALL, "Russian");
int a=0, b=0;
bool pr;
while (a < 100)
{
pr = false;
cout << "Введите координаты - x, y: ";
cin >> a >> b;
system("cls");
for (int x = 1; x <= 3; x++)
{
for (int y = 6; y <= 8; y++)
{
if (a == x && b == y)
{
pr = true;
}
}
}
for (int x = 3; x <= 5; x++)
{
for (int y = 2; y <= 6; y++)
{
if (a == x && b == y)
{
pr = true;
}
}
}
for (int x = 5; x <= 7; x++)
{
for (int y = 6; y <= 8; y++)
{
if (a == x && b == y)
{
pr = true;
}
}
}
cout << pr << endl;
}
}