202k views
13 votes
V. Write a program in python for the following:

[10]
a) Jennifer wants to carpet her new room with pink carpet. Create a program that will ask the user for the two
dimensions of a room (length and width) and then calculate the area of the room, (length x width), before
finally displaying the answer​

1 Answer

5 votes

Answer:

length = input("length of room: ")

width = input("Width of room: ")

Area = float(length) * float(width)

print("Area of room is: ", Area)

User Momouu
by
3.4k points