Advertisement
Guest User

asdasd

a guest
Dec 7th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. a,b,c,d,e = eval(input("Unesite pet brojeva razmaknuti sa zarezom"))
  2.  
  3. if a <=b and a<=c and a<=d and a<=e:
  4. a=1000000000
  5. elif b<=a and b<=c and b<=d and b<=e:
  6. b=1000000000
  7. elif c<=a and c<=b and c<=d and c<=e:
  8. c=1000000000
  9. elif d<=a and d<=c and d<=b and d<=e:
  10. d=1000000000
  11. elif e<=a and e<=c and e<=d and e<=b:
  12. e=1000000000
  13.  
  14. if a <=b and a<=c and a<=d and a<=e:
  15. print ("Drugi najmanji je",a)
  16. elif b<=a and b<=c and b<=d and b<=e:
  17. print ("Drugi najmanji je",b)
  18. elif c<=a and c<=b and c<=d and c<=e:
  19. print ("Drugi najmanji je",c)
  20. elif d<=a and d<=c and d<=b and d<=e:
  21. print ("Drugi najmanji je",d)
  22. elif e<=a and e<=c and e<=d and e<=b:
  23. print ("Drugi najmanji je",e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement