-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path11.py
More file actions
53 lines (41 loc) · 918 Bytes
/
Copy path11.py
File metadata and controls
53 lines (41 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#11. Desarrolle un algoritmo que permita leer 5 números y mostrarlos ordenados de menor a mayor.
print("ingrese 5 numero")
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
if a<b<c<d<e :
print (a,b,c,d,e)
elif a<b<c<e<d :
print(a,b,c,e,d)
elif a<b<e<c<d :
print(a,b,e,c,d)
elif a<e<b<c<d :
print(a,e,b,c,d)
elif e<a<b<c<d :
print (e,a,b,c,d)
elif a<b<d<c<e :
print(a,b,d,c,e)
elif a<d<b<c<e :
print(a,d,b,c,e)
elif d<a<b<c<e :
print(d,a,b,c,e)
elif a<b<d<e<c :
print(a,b,d,e,c)
elif a<c<b<d<e :
print(a,c,b,d,e)
elif c<a<b<d<e :
print(c,a,b,d,e)
elif a<c<d<e<b :
print(a,c,d,e,b)
elif a<c<d<b<e :
print(a,c,d,b,e)
elif b<a<c<d<e:
print(b,a,c,d,e)
elif b<a<c<e<d :
print(b,a,c,e,d)
elif b<a<e<c<d:
print(b,a,e,c,d)
elif b<c<a<d<e :
print(b,c,a,d,e)