Assignemnt #84, Noticing Even Numbers

Code

      /// Name: Alex Pinder
      /// Period: 5
      /// Program Name: Noticing Even Numbers
      /// File Name: prog84.java
      /// Date Complete: 2/24/16
      
      public class prog84
      {
          public static void main( String[] args )
          {
              for ( int n = 1; n <= 20; n = n+1 )
              {
                  System.out.print( n );
                  
                  if ( n % 2 == 0 )
                  {
                      System.out.println( " <" );
                  }
                  else
                  {
                      System.out.println( "" );
                  }
              }
          }
      }
    

Picture of the output

Assignment 84