Room Cost Calculation Total Only Reflects the Last Room
It doesn't seem to be working, and I'm trying to figure out what's causing the issue. totalCost = 0.00 rooms=int(input('How many rooms are there? ')) smallCost = 299.99 largeCost = 499.99 loop = 0 while loop < rooms: smallWindows=int(input('How many small windows are there in this room? ')) largeWindows=int(input('How many large windows are there in this room? ')) loop=(loop + 1) totalCost=(largeWindows * largeCost) + (smallWindows * smallCost) print('Your total is £',totalCost,'! ')
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.