Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Program to input length and breadth of a rectangle and calculate it's area.
- import time
- length = float(input("Enter Length: "))
- breadth = float(input("\nEnter Breadth: "))
- print("\nProcessing your request...")
- time.sleep(1)
- area = length*breadth
- print("\n\n----------Rectangle specifications----------")
- print("The length of the rectangle is: ", length)
- print("The breadth of the rectangle you have inputted is: ", breadth)
- print("\nThe area of the rectangle you have inputted is: ", area)
- print("--------------------------------------------")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement