Decode School

Area of Rectangle in Python

Python program to getlength and breadth of rectangle and find area of rectangle

Sample Input 1:

4 5

Sample Output 1:


Program or Solution

l=int(input("Enter the length:"))
b=int(input("Enter the breadth:"))
print("area: {}".format(area))


Program Explanation

get length and breadth of a rectangle using input() method calculate area = length * breadth