asked 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.

asked
User BAE
by
7.9k 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.

answered
User Hassan TBT
by
8.1k points