Added formatted print
This commit is contained in:
parent
f8a445bb7d
commit
7159b59de0
1 changed files with 1 additions and 1 deletions
|
|
@ -4,4 +4,4 @@ width = float(input("Enter a value for width "))
|
|||
|
||||
areaOfRectangle = length * width
|
||||
|
||||
print("Area = ",areaOfRectangle)
|
||||
print(f"Area = {areaOfRectangle:.2f}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue