Intro to Java Classwork: Counting
Write a Java program contained in a single file named "Counting.java"
that has the user enter one positive even integer, followed by one
negative even integer.  Then perform the following five tasks:

1) Use a 'for' loop to display every integer from the smaller (negative) number
   up through the larger (positive) number, printing one number per line.

2) Use a 'for' loop to display every integer from the larger number down through
   the smaller number, printing one number per line.

3) Use a 'for' loop to display every odd integer from the larger number down
   through the smaller number, printing the numbers on a single line, each
   separated by a single space.

4) Use a 'for' loop to display every even integer from the smaller number up
   through the larger number, printing the numbers on a single line, each
   separated by a single space.

5) Use a 'for' loop to display every non-zero number from the smaller number up
   through the larger number, printing the numbers on a single line, each
   separated by a single space.

For this program, other than the 'Scanner' class, you may not import or
use any external methods.  However, it is okay to put all of your code
inside the 'main' method of your program.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Advanced Option
Repeat all five tasks above, but use a 'while' loop instead of a 'for' loop.