Advertisement
Guest User

Untitled

a guest
Jul 14th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. x = int(input("Unesite prvi broj:"))
  2. operacija = input("Unesite operaciju (+, -, * ili /)")
  3. y = int(input("Unesite drugi broj:"))
  4.  
  5. if operacija == "+":
  6. print("Zbir ova dva broja je:", x+y)
  7.  
  8. elif operacija == "-":
  9. print("Razlika ova dva broja je:", x-y)
  10.  
  11. elif operacija == "*":
  12. print("Proizvod ova dva broja je:", x*y)
  13.  
  14. elif operacija == "/":
  15. print("Kolicnik ova dva broja je:", x/y)
  16.  
  17. else:
  18. print("Nepostojeca operacija!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement