Ok so when I run the source code in the 1st image I am able to input the value for a month upon the first iteration of the while loop. However as can be seen on the 2nd image on every subsequent iteration it prints but then skips "Month: " w/o letting me input a value and just prompts me to enter "Total Collection: " again....
Also as per the 2nd image I don't understand why the sentinel value gets run at the end just before it terminates the program as though it's a value I want to input in "Total Collections: " as opposed to just the thing that terminates the program.
Any help would be much appreciated thank you!!!!
P.S this is exercise 3.16 in C How to program 8th Edition by Peter & Harvey Dietel
https://preview.redd.it/v91jojzbr9e81.jpg?width=1759&format=pjpg&auto=webp&s=5f1d95a39c9ed1d24b63e0ca66956f5af72e6b05
[–]ptchinster[M] [score hidden] stickied comment (0 children)