PROGRAM TO FIND GREATEST NUMBERS OF FOUR
# program to find greatest numbers of four
print("enter the first number")
num1 = int(input())
print("enter the second number")
num2 = int(input())
print("enter the third number")
num3 = int(input())
print("enter the fourth number")
num4 = int(input())
if(num1>num4):
f1 = num1
else:
f1 = num4
1
if(num2>num3) :
f2 = num2
else:
f2 = num3
if(f1>f2):
print(str(f1)+" is greatest number")
else:
print(str(f2)+" is greatest number")
Comments
Post a Comment