Odpowiedź:
Prog.1
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a == c || b == d)
cout << "TAK";
else
cout << "NIE";
}
Prog.2
int x, y;
cin >> x >> y;
if (x > 0 && y > 0)
cout << "I";
else if (x < 0 && y > 0)
cout << "II";
else if (x < 0 && y < 0)
cout << "III";
else if (x > 0 && y < 0)
cout << "IV";
else if (x == 0 && y == 0)
cout << 0;
else if (x == 0)
cout << "OY";
cout << "OX";
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
Prog.1
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a == c || b == d)
cout << "TAK";
else
cout << "NIE";
}
Prog.2
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int x, y;
cin >> x >> y;
if (x > 0 && y > 0)
cout << "I";
else if (x < 0 && y > 0)
cout << "II";
else if (x < 0 && y < 0)
cout << "III";
else if (x > 0 && y < 0)
cout << "IV";
else if (x == 0 && y == 0)
cout << 0;
else if (x == 0)
cout << "OY";
else
cout << "OX";
}