Assignment #84

Code

        /// Name: Georgi Atanasov
        /// Period: 5
        /// Program Name: Noticing Even Numbers
        /// File Name: NoticingEvenNumbers.java
        /// Date Finished: 12/9/2015
    
    public class NoticingEvenNumbers
    {
        public static void main(String[] args)
        {
            for ( int n = 1; n <= 20; n++ )
            {
                System.out.print(n + " ");
                
                if ( n % 2 == 0 )
                {
                    System.out.println("<");
                }
                else
                {
                    System.out.println();
                }
            }
        }
    }
    

Picture of the output

Assignment 84