Assignment #84 and Shorter Double Dice

Code

        /// Name: Trent Lane
    /// Period: 6
    /// Program Name: Noticing Even Numbers
    /// Date Finished: 2/18/2016
    
    public class NoticeEven
    {
        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 71