Computer Science, asked by supriya952, 10 months ago

wap in python that reads three numbers and prints them in ascending order​

Answers

Answered by akshayamca14
8

Answer:

a=input()

b=input()

c=input()

numbers=[int(a),int(b),int(c)]

numbers.sort()

 

print(numbers)

Explanation:

Answered by singhamanpratap0249
14

Answer:

def main():

x = input( "Enter a number >> ")

y = input( "Enter a second number >> ")

z = input( "Enter a third number >> ")

if x == y:

print "Those numbers are the same!"

elif y == z:

print "Those numbers are the same!"

elif x == z:

print "Those numbers are the same!"

elif x < y < z:

print "%d, %d, %d" % (x, y, z)

elif x < y < z:

print "%d, %d, %d" % (x, z, y)

elif x < y < z:

print "%d, %d, %d" % (y, x, z)

elif x <y < z:

print "%d, %d, %d" % (y, z, x)

elif x < y < z:

print "%d, %d, %d" % (z, x, y)

else:

print "%d, %d, %d" % (z, y, x)

main()

Similar questions