Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a,b,c,d,e = eval(input("Unesite pet brojeva razmaknuti sa zarezom"))
- if a <=b and a<=c and a<=d and a<=e:
- a=1000000000
- elif b<=a and b<=c and b<=d and b<=e:
- b=1000000000
- elif c<=a and c<=b and c<=d and c<=e:
- c=1000000000
- elif d<=a and d<=c and d<=b and d<=e:
- d=1000000000
- elif e<=a and e<=c and e<=d and e<=b:
- e=1000000000
- if a <=b and a<=c and a<=d and a<=e:
- print ("Drugi najmanji je",a)
- elif b<=a and b<=c and b<=d and b<=e:
- print ("Drugi najmanji je",b)
- elif c<=a and c<=b and c<=d and c<=e:
- print ("Drugi najmanji je",c)
- elif d<=a and d<=c and d<=b and d<=e:
- print ("Drugi najmanji je",d)
- elif e<=a and e<=c and e<=d and e<=b:
- print ("Drugi najmanji je",e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement