All Questions
2 questions
0
votes
1
answer
102
views
Greedy - Do While Negative Float
I'm testing the very first requirement of the Greedy assignment (ensure the input is not negative). I'm running into an issue where if I use < 0 in the while statement, -0.1, -0.2, -0.3 etc. is ...
0
votes
1
answer
218
views
Pset1 Greedy; problem with do-while loop
When I try to run my code, I get prompted for the change amount, as desired, but when I enter an amount, nothing else appears in the terminal and the program does not calculate the minimum number of ...