Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #move on to the second input is the largest and the first input is the smallest
- if listend2 > listend3 and listend2 > listend4 and listend2 > listend5 and listend2 > listend1:
- largest = listend2
- if listend3 > listend4 and listend3 > listend5 and listend3 > listend1 and listend3 < listend2:
- large = listend3
- if listend4 > listend5 and listend4 > listend1 and listend4 < listend2 and listend4 < listend3:
- medium = listend4
- if listend5 > listend1 and listend5 < listend4 and listend5 < listend3 and listend5 < listend2:
- small = listend5
- if listend1 < listend5 and listend1 < listend4 and listend1 < listend3 and listend1 < listend2:
- smallest = listend1
- #move on to the third input is the largest and the first input is the smallest with the second input being second smallest
- if listend3 > listend4 and listend3 > listend5 and listend3 > listend1 and listend3 > listend2:
- largest = listend3
- if listend4 > listend5 and listend4 > listend1 and listend4 > listend2 and listend4 < listend3:
- large = listend4
- if listend5 > listend1 and listend5 > listend2 and listend5 < listend3 and listend5 < listend4:
- listend5 = medium
- if listend2 > listend1 and listend2 < listend5 and listend2 < listend4 and listend2 < listend3:
- listend2 = small
- if listend1 < listend2 and listend1 < listend3 and listend1 < listend4 and listend1 < listend5:
- listend1 = smallest
- #move on to the fourth input is the largest and the first input is the smallest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement