Advertisement
ShaunakVids

6.3 Program to input length and breadth of a rectangle and calculate it's area

Sep 18th, 2024
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. # Program to input length and breadth of a rectangle and calculate it's area.
  2.  
  3. import time
  4.  
  5. length = float(input("Enter Length: "))
  6. breadth = float(input("\nEnter Breadth: "))
  7. print("\nProcessing your request...")
  8. time.sleep(1)
  9. area = length*breadth
  10.  
  11. print("\n\n----------Rectangle specifications----------")
  12. print("The length of the rectangle is: ", length)
  13. print("The breadth of the rectangle you have inputted is: ", breadth)
  14. print("\nThe area of the rectangle you have inputted is: ", area)
  15. print("--------------------------------------------")
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement