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)
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
0 Comments