git_practice/rectangular-solid01.py

18 lines
407 B
Python

# Program rectanglar-solid.py
startUpMessage = '''
This program calculates the volume of a rectangular solid.
'''
print(startUpMessage)
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}")
print("\n")