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