Added documantion and information to the programs

This commit is contained in:
jdavilabeaz2401 2025-11-26 13:53:18 -05:00
parent a2259b5b98
commit db095e828d
4 changed files with 48 additions and 4 deletions

View file

@ -1,7 +1,16 @@
# Program rectangle01.py
startUpMessage = '''
This program calculates the area of a rectangle.
'''
print(startUpMessage)
length = float(input("Enter a value for the length "))
width = float(input("Enter a value for the width "))
areaOfRectangle = length * width
print(f"Area = {areaOfRectangle:.1f}")
print(f"Area = {areaOfRectangle:.1f}")
print("\n")