I am able to ask the user for change and then round and convert to an int I know this works because i compiled it alone and it produced values without decimal.
I then though I just need to create while loops with the new int total and run it for quarters, dimes... But nothing happens. When I run it, it asks user for change and that's it! This is the code that I used, which I repeated for each of the coins:
Note: I did not define the coins =0 at beginning (e.g. quarters = 0) - And when I tried this, it didn't work either...
while
loop at 23 inside thedo-while
at 21? Nesting isn't needed there imo.