Advertisement
simeonshopov

Add and subtract

Dec 10th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. num_1 = int(input())
  2. num_2 = int(input())
  3. num_3 = int(input())
  4.  
  5. def add(a, b):
  6.     return a + b
  7.  
  8. def subtract(r, c):
  9.     return r - c
  10.  
  11. def add_and_subtract(x, y, z):
  12.     return subtract(add(x, y), z)
  13.  
  14. print(add_and_subtract(num_1, num_2, num_3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement