Added formatted print
parent
86e7e7ede6
commit
30db79534a
|
@ -4,4 +4,4 @@ width = float(input("Enter a value for width "))
|
||||||
|
|
||||||
areaOfRectangle = length * width
|
areaOfRectangle = length * width
|
||||||
|
|
||||||
print("Area = ",areaOfRectangle)
|
print(f"Area = {areaOfRectangle:.2f}")
|
Loading…
Reference in New Issue