Homework 5, A little loopy.
Short Description:
Do Something
Goals
When you finish this homework, you should have:
- Demonstrated your ability to write some simple loops.
Formal Description
In a single java program perform the following tasks.
- Count from -10 to 0 by 1. Include both -10 and 1 in your output. Print all values on a line separated by a space.
- Count from 1 to 20 by 3, (1, 4, 7, ...). Place all output on a line, separated by commas, no comma after the last number
- Ask the user to input 99, a number and loop until they give you the number 99. Print the number of times they gave you a number that was not 99.
Please label each of the different loops:
- In the program with comments.
- In the output with blank lines and print statements.
Required Files
A single java program file.
Submission
Submit the assignment to the D2L folder Homework 5 by the due date.