Calculate Area of Rectangle in Python


Write a program in python to enter length and breadth of rectangle and calculate area of rectangle?

l=int(input("Enter the length: "))
b=int(input("Enter the breadth: "))
area=l*b
print("Area of rectangle is:  ",area) 

Output:-

Enter the length: 5
Enter the breadth: 4

Area of rectangle is:   20

Post a Comment

0 Comments