Friday, December 10, 2021

Area of Rectangle in Python

 # Machine Problem in Python

#
# Write a program to find the area of a rectangle in Python.
# Using the following formula
# Area = Width * Height

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Program Listing


# Jake R. Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

# Machine Problem in Python
#
# Write a program to find the area of a rectangle in Python.
# Using the following formula
# Area = Width * Height

print("\n")
print("\tArea of Rectangle in Python")
print("\n")
width = float(input('Give the Width of a Rectangle: '))
height = float(input('Give the Height of a Rectangle: '))

# calculate the area
Area = width * height

print("\n")
print("Area of a Rectangle is: %.2f" %Area)
print("\n\tEnd of Program")
print("\n")

No comments:

Post a Comment