You can use a while() loop to collect 5 numbers and calculate and print the sum using one variable. But if you want to store those 5 numbers in separate variables for later retrieval without the use...
Type: Posts; User: GregBrannon
You can use a while() loop to collect 5 numbers and calculate and print the sum using one variable. But if you want to store those 5 numbers in separate variables for later retrieval without the use...
Welcome! Excellent first post!
I take it you don't know arrays yet? Using an array to store the user's input would dress up the loop and program a lot. Let us know if you can use arrays.
...