-
Notifications
You must be signed in to change notification settings - Fork 1
/
1.py
38 lines (36 loc) · 959 Bytes
/
1.py
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
x = int(input("Enter number 1: "))
y = int(input("Enter number 2: "))
z = int(input("Enter number 3: "))
if x%2 != 0:
if y%2 != 0:
if z%2 != 0:
if x > y:
if x > z:
print("x is greater.")
else:
print("z is greater.")
else:
if y > z:
print("y is greater.")
else:
print("z is greater.")
else:
if x > y:
print("x is greater.")
else:
print("y is greater.")
else:
print("x is greater.")
else:
if y%2 != 0:
if z%2 != 0:
if y > z:
print("y is greater.")
else:
print("z is greater.")
else:
print("y is greater.")
elif z%2 != 0:
print("z is greater.")
else:
print("No odd numbers.")