Advertisement
SimeonTs

SUPyF2 D.Types and Vars Exercise - 01. Integer Operations

Sep 27th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. """
  2. Data Types and Variables - Exercise
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1722#0
  4.  
  5. SUPyF2 D.Types and Vars Exercise - 01. Integer Operations
  6. Problem:
  7. Read four integer numbers.
  8. Add first to the second, divide (integer) the sum by the third number and multiply the result by the fourth number.
  9. Print the result.
  10.  
  11. Examples:
  12. Input: Output:
  13. 10     30
  14. 20
  15. 3
  16. 3
  17.  
  18. Input: Output:
  19. 15     42
  20. 14
  21. 2
  22. 3
  23. """
  24. print(int(((int(input()) + int(input())) // int(input())) * int(input())))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement