411,140 views
42 votes
42 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 Komar
by
2.4k points

1 Answer

16 votes
16 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 Maarten Wolzak
by
2.6k points