git_practice/homework06/program-files/5 - Modified print format precision/rectangle01.py
2025-12-14 18:34:36 -05:00

7 lines
No EOL
174 B
Python

length = float(input("Enter a value for length "))
width = float(input("Enter a value for width "))
areaOfRectangle = length * width
print(f"Area = {areaOfRectangle:.1f}")