0
Create a program that show the larger number and smaller number among two numbers
num1 = int(input()) num2 = int(input()) if num1>num2: print(num1 , "is greater") else: print(num1, "is smaller") if num2>num1: print(num2 , "is greater") else: print(num2 , "is smaller")
3 Antworten
0
Share your attempt?
0
num1 = int(input())
num2 = int(input())
if num1>num2:
print(num1 , "is greater")
else:
print(num1, "is smaller")
if num2>num1:
print(num2 , "is greater")
else:
print(num2 , "is smaller")
0
Here is my code