Added formatted print
This commit is contained in:
parent
86e7e7ede6
commit
30db79534a
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