SimeonTs

SUPyF2 Functions-Lab - 05. Calculate Rectangle Area

Oct 8th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. """
  2. Functions - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1727#4
  4.  
  5. SUPyF2 Functions-Lab - 05. Calculate Rectangle Area
  6. Problem:
  7. Create a function that calculates and returns the area of a rectangle by given width and height:
  8.  
  9. Examples:
  10.  
  11. Input:  Output:
  12. 3
  13. 4       12
  14.  
  15. 6
  16. 2       12
  17. """
  18.  
  19.  
  20. def rectangle_area(side_a, side_b):
  21.     return f"{(side_a * side_b)}"
  22.  
  23.  
  24. print(rectangle_area(int(input()), int(input())))
Add Comment
Please, Sign In to add comment