University School of Automation & Robotics

Personal resource archive for various courses.

q6.py

# Write a program that receive input from the user to calculate the area of rectangle.

length = int(input("Enter length: "))
breadth = int(input("Enter breadth: "))
print(f"Area of rectangle having length {length} and breadth {breadth} is {length * breadth}.")