Untitled

 avatar
unknown
plain_text
a year ago
414 B
2
Indexable
# Get user input for dimensions
length = float(input("Enter the length of the box: "))
width = float(input("Enter the width of the box: "))
height = float(input("Enter the height of the box: "))

# Calculate volume
volume = length * width * height

# Print results
print(f"The volume of the rectangular box is {volume:.2f} cubic units.")
print(f"Dimensions: Length = {length}, Width = {width}, Height = {height}")
Editor is loading...
Leave a Comment