Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

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