8 lines
254 B
Python
8 lines
254 B
Python
|
|
||
|
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"Volume = {volumeOfRectangle:.1f}")
|