Advertisement
marcosoliva

oliva_ejercicio#6

Mar 30th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. print('Ingresar 3 numeros')
  2. n1=int(input())
  3. n2=int(input())
  4. n3=int(input())
  5. if n1>n2 and n1>n3:
  6.     if n2>n3:
  7.         print(n1,n2,n3)
  8.     else:
  9.         print(n1,n3,n2)
  10. elif n2>n1 and n2>n3:
  11.     if n1>n3:
  12.         print(n2,n1,n3)
  13.     else:
  14.         print(n2,n3,n1)
  15. else:
  16.     if n1>n2:
  17.         print(n3,n1,n2)
  18.     else:
  19.         print(n3,n2,n1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement