TOPIC
Que questão Complicada...
jhftm0 asked 6 years ago
Estou enviando e dá 20% de erro. Sei que não é necessidade de pegar o tamanho da matriz como entrada, mas isso ainda não esta claro ... Se Alguem Puder Ajudar Agradeço!
include
using namespace std;
int main() { int l,c; int x, y;
for ( l = 0; l < 2 ; l++)
{
cin >> l;
for ( c = 0; c < 3 ; c++)
{
cin >> c;
}
cin >> x >> y;
if (x < y)
{
cout << "Esquerda" << endl;
}
else if ((x == y || y == x) && ((y < x)) % 2 ==0)
{
cout << "Direita" << endl;
}
}
return 0;
}
This topic was solved and cannot recieve new replies.