Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- room = 0
- while (room<3):
- length = float(input("Enter the length of the first room in feet: "))
- width = float(input("Enter the width of the first room in feet: "))
- length_yard = float(length/3)
- width_yard = float(width/3)
- room_area = float(length_yard*width_yard)
- room=room+1
- print ("The area of the first room is %s square yards." % (room1_area))
- print ("The cost of carpeting the first room is $%5.2f." % (room1_area*8.95))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement