Started Rectangle Project
This commit is contained in:
commit
26e1253c0d
39 changed files with 544 additions and 0 deletions
|
|
@ -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