Assignemnt 84 and NoticingEvenNumbers

Code

    /// Name: Xinting Chen
    /// Period: 7
    /// Program Name: Noticing Even Numbers
    /// File Name: NoticingEvenNumbers.java
    /// Date Finished: 2/25/2016
  
      import java.util.Scanner;
      public class NoticingEvenNumbers
      {
          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

Assignment 84