forked from ronitraj74/python-Learning-code
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path06_practice.py
More file actions
20 lines (19 loc) · 765 Bytes
/
06_practice.py
File metadata and controls
20 lines (19 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# age = int(input("ENTER YOUR AGE : "))
# if(age>=18):
# print("yes")
# else:
# print("no")
#================================================================z5
num1 = int(input("Enter the first number : "))
num2 = int(input("Enter the second number : "))
num3 = int(input("Enter the third number : "))
num4 = int(input("Enter the fourth number : "))
if num1>num2 and num1>num3 and num1>num4 :
print("greatest number is : ",num1)
elif num2>num1 and num2>num3 and num2>num4 :
print("greatest number is : ",num2)
elif num3>num1 and num3>num2 and num3>num4 :
print("greatest number is : ",num3)
else :
print("greatest number is : ",num4)
#=========================================================================