-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask1.cpp
More file actions
38 lines (33 loc) · 1.02 KB
/
Task1.cpp
File metadata and controls
38 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if ((x % 2) * (y % 2) == 1)
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
if (((x < 20) && (y >= 20)) || ((x >= 20) && (y < 20)))
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
if (x*y == 0)
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
if ((x < 0) && (y < 0) && (z < 0))
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
if (((x % 5 == 0) && ((y*z % 5) != 0)) ||
((y % 5 == 0) && ((x*z % 5) != 0)) ||
((z % 5 == 0) && ((y*x % 5) != 0)))
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
if ((x > 100) || (y > 100) || (z > 100))
cout << "condition is true" << endl;
else
cout << "condition is false" << endl;
return 0;
}