Assignment #84

Code

/* 
Jack newsom
period 5
program EvenNumbers
filename EvenNumbers.java
*/

public class EvenNumbers
{
    public static void main( String[] args )
    {
        for ( int x = 1; x <= 20; x = x + 1 )
        {
            if ( (x % 2) == 1 )
                System.out.println( x );
            else
                System.out.println( x + " < " );
        }
    }
}      
    

Picture of the output

Assignment X