Assignment #84

Code

    /// Name: Ian Stanko
    /// Period: 5
    /// Program Name: evennumbers
    /// File Name: evennumbers.java
    /// Date Finished: 2/7/2016
    
    public class evennumbers
    {
        public static void main( String[] args )
        {
        
            
            for ( int x =1; x <= 20; x++)
            {
                int n = x % 2;
                if (n == 0)
                {
                    System.out.println( x + "<" );
                }
                else 
                {
                    System.out.println( x + " " );
                }
            }
        }
    }


    

Picture of the output HOME

Assignment 84