A program that ask for a starting, ending and increment number. And identifies the odds and evens
<p>This is a loop program that im trying to write that asks for a starting, ending and increment nuumber. The program stops at th eending number and outputs every number from starting to end identifying if they are even or odd.
EXAMPLE:
Please enter a starting number: 3
Please enter an ending number: 19
Please enter an increment number: 3
The number 3 is odd
The number 6 is even
The number 9 is odd
The number 12 is even
The number 15 is odd
The number 18 is even</p>

<p>I am stuck. This is what I have so far. Any help will be appreciated!</p>

<pre><code>import java.util.*;



public class projNum 
{

static Scanner console = new Scanner(System.in);    

public static void main(String[] args)

{


int num=0;  
int endnum;
int count=0;

int even = 0;
int odd = 0;

System.out.println("Please enter a starting number:");
int num2 = console.nextInt();

System.out.println("Enter a ending number...NOW!:");
int endnum2 = console.nextInt();

System.out.println("Enter a increment number:");
int count2 = console.nextInt();


while (num2 !=endnum2)  
{ 
count++;
System.out.println("Please enter a starting number:");
num2 = console.nextInt();
}
System.out.println("You enter: " + count);

}
</code></pre>

<p>}</p>
