Room Cost Calculation Total Only Reflects the Last Room [closed]
![Room Cost Calculation Total Only Reflects the Last Room [closed]](default-image.png)
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,'! ')
Take Your Experience to the Next Level
NewDownload our mobile app for a faster and better experience.
Comments
0U
Join the discussion
Sign in to leave a comment