AnkitWebLogic

Calculate Area of Rectangle | Python

Exercise 4: WAP to input length and breadth of a rectangle and calculate its area. Area=Length*Breadth. 1

#Input length and breadth of a rectangle and calculate its area | ankitweblogic.com
l=int(input("Enter Length: "))
b=int(input("Enter Breadth: "))
a=l*b
print("Area of Rectangle = ",a)
Enter Length: 10
Enter Breadth: 20
Area of Rectangle = 150

Advertisement