Python program to print area of rectangle

Python program to print area of rectangle. Print the area of rectangle program in python programming language to understand how the program functions for mathematical operations in python programming language.

print("Enter Length of Rectangle ")
l = float(input())
print("Enter Breadth of Rectangle")
b = float(input())
a = l*b
print("\nArea = ", a)

 

Output:

Enter length of rectangle 45

Enter breadth of rectangle 45

Area=2025