A suggestion: Try making a smaller simpler program first.
Make a loop that will execute forever: while(true)
In the loop ask the user to enter a number , tell him 99 will exit the loop
print the...
Type: Posts; User: Norm
A suggestion: Try making a smaller simpler program first.
Make a loop that will execute forever: while(true)
In the loop ask the user to enter a number , tell him 99 will exit the loop
print the...
Put the code you want to be repeated inside the loop.
That requests that the user enter a SPECIAL value that the program recognizes to tell the program to exit the loop.
Use an if statement to test for the special value
use a break statement to exit...
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Please explain what "not working" means. There are many ways for a program to not work.
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve...
Sorry, we do not write code for students. We'll help you with your problems and make suggestions.
You made a list of steps the code should do in post#3
Which of the steps are now done?
What is the next step you need to do?
Please ask a specific question about the problem you are having with...
You made a list of steps the code should do in post#3
Which of the steps are now done?
What is the next step you need to do?
Please edit your post and wrap your code with
<YOUR CODE HERE>
...
Ok, what have you done so far and where are you having problems.
Do you have any specific questions about the program you want to make?