17.6k views
5 votes
Q6. Ask for two numbers. If the first one is larger than the second, display the second number first and then the first number, otherwise show the first number first and then the second.

User BAE
by
5.2k points

1 Answer

3 votes

Answer:

Number1 = input("Choose a number: )

Number2 = input("Choose a second number: )

if number1 > number2:

print(number2\\number1)

else:

print(number1\\number2)

Step-by-step explanation:

I'm assuming that you want it in python.

User Hassan TBT
by
5.4k points