Your error lies here: It should be
if(number != -99) { Keep in mind that the user needs to be continuously prompted (loop) with the questions for entering a number. What this does is ask the...
Type: Posts; User: Blasfemmy
Your error lies here: It should be
if(number != -99) { Keep in mind that the user needs to be continuously prompted (loop) with the questions for entering a number. What this does is ask the...
The main differences between the three loops that you described are:
A "do-while loop" checks to see if the condition is true or false after the code is executed.
A "while loop" checks the...
If you break the problem down into small steps, then the problem will not seem nearly as complex.
This is going to be your loop.
In psuedocode:
do {
//prompts user to enter a...
Can you post your code so that we can look over what you have already done?
Can you elaborate upon this? What error messages are you getting?...