num1 = input("Num1:") num2 = input("Num2:") num3 = input("Num3:") max_num = 0 if num1 > num2: max_num = num1 if max_num > num3: print("Max number is", max_num) else: print("Max num is", num3) else: num1 < num2 max_num = num2 if max_num > num3: print("Max number is", max_num) else: print("Max num is", num3)
num1 = input("Num1:")
num2 = input("Num2:")
num3 = input("Num3:")
max_num = 0
if num1 > num2:
max_num = num1
if max_num > num3:
print("Max number is", max_num)
else:
print("Max num is", num3)
else:
num1 < num2
max_num = num2
if max_num > num3:
print("Max number is", max_num)
else:
print("Max num is", num3)