Feel free to use the window below to try out some code. Be sure to work the correct answer out "by hand" first before verifying your answer using the code window.
Youβd like to add up all of the scores you have received so far on your assignments. Please write a C program that uses a while loop to repeatedly ask the user to enter a score, and that adds up all of these scores until the user enters -1 to finish. Obviously, the -1 should not be added to your final tally.
Note: scores entered could be negative (you may not have experienced this, but the old SATs actually had negative scores for guessing incorrectly...). Just -1 is not an actual score in this particular exercise and forces the loop to terminate.