Toma252

4.2 recktangle

Oct 16th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #This program calculates circumference and area of recktangle#
  2. ##############################################################
  3.  
  4. # Length and width of the recktangle
  5. a = float(input("Please enter length: "))
  6. b = float(input("Please enter width: "))
  7.  
  8. # Recktangle circumference and area
  9. circumference = 2 * a + 2 * b
  10. area = a * b
  11.  
  12. result = (circumference, area)
  13.  
  14. # Print the result
  15. print(result)
Add Comment
Please, Sign In to add comment