modified the print formats
This commit is contained in:
parent
935cecbb7f
commit
9871aa99f3
2 changed files with 2 additions and 2 deletions
|
|
@ -5,4 +5,4 @@ height = float(input("Enter a value for height "))
|
||||||
|
|
||||||
volumeOfRectangle = length * width * height
|
volumeOfRectangle = length * width * height
|
||||||
|
|
||||||
print(f"Area = {volumeOfRectangle:.2f}")
|
print(f"Area = {volumeOfRectangle:.1f}")
|
||||||
|
|
@ -4,4 +4,4 @@ width = float(input("Enter a value for width "))
|
||||||
|
|
||||||
areaOfRectangle = length * 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