Quick actions

cmd+k|ctrl+k

Navigation

Languages

ERB 28 Jan 2026 Exercise Area

Snippet info

Language

Python

Visibility

public

Author

michael-wong

Created

2026-01-29T14:23:38.879791Z

Updated

2026-01-29T14:23:38.879791Z

length = float(input("Please input the length of the rectangle in cm: "))
width = float(input("Please input the width of the rectangle in cm: "))

area = length * width

print("\nResult:")
print(f"The area of the rectangle is {area} square centimeters.")
INFO