Corrected text seen by the user
parent
4a26644b9d
commit
fecc030bf1
|
@ -1,8 +1,8 @@
|
|||
|
||||
length = float(input("Enter a value for length "))
|
||||
width = float(input("Enter a value for width "))
|
||||
height = float(input("Enter a value for height "))
|
||||
length = float(input("Enter a value for the length "))
|
||||
width = float(input("Enter a value for the width "))
|
||||
height = float(input("Enter a value for the height "))
|
||||
|
||||
volumeOfRectangle = length * width * height
|
||||
|
||||
print(f"Area = {volumeOfRectangle:.2f}")
|
||||
print(f"Volume = {volumeOfRectangle:.1f}")
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
length = float(input("Enter a value for length "))
|
||||
width = float(input("Enter a value for width "))
|
||||
length = float(input("Enter a value for the length "))
|
||||
width = float(input("Enter a value for the width "))
|
||||
|
||||
areaOfRectangle = length * width
|
||||
|
||||
print(f"Area = {areaOfRectangle:.2f}")
|
||||
print(f"Area = {areaOfRectangle:.1f}")
|
Loading…
Reference in New Issue