Answer to Question #192187 in Python for Harsha Vardhini

Question #192187

Area of rectangle


1
Expert's answer
2021-05-11T14:59:27-0400
#program to print the area of a rectangle
#get the lenth of the rectangle
length=int(input("Enter the length of rectangle: "))
#get the width of the rectangle
width=int(input("Enter the width of the rectangle: "))
#calculate the area of the rectangle
area=length*width
#print the area
print("The area of the rectangle is ",area)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS