Advertisement
plugin23

vyzva21jednoducha

Jun 6th, 2025
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. a = int(input("Zadaj cislo 1: "))
  2. b = int(input("Zadaj cislo 2: "))
  3. c = int(input("Zadaj cislo 3: "))
  4. d = int(input("Zadaj cislo 4: "))
  5.  
  6.  
  7. sucet = a + b + c + d
  8. rozdiel = a - b
  9. sucin = a * b * c * d
  10. podiel = c / d  # ak je d 0, error
  11.  
  12.  
  13. print("Sucet:", sucet)
  14. print("Rozdiel:", rozdiel)
  15. print("Sucin:", sucin)
  16. print("Podiel:", podiel)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement