Added documantion and information to the programs
This commit is contained in:
parent
a2259b5b98
commit
db095e828d
4 changed files with 48 additions and 4 deletions
17
rectangular-solid01.py
Normal file
17
rectangular-solid01.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue