Assignment 84

Code

    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