Assignemnt #80 Notice Evens

Code

/// Name: JJ Deng
/// Period: 6
/// Program Name: Noticing Even Numbers
/// File Name: NoticingEvenNumbers.java
/// Date Finished: 2/5/2016

      import java.util.Scanner;
      public class NoticeEven
      {
          public static void main( String[] args )
          {
          
              for ( int x= 22; x <= 50; x++)
              {
                  int n= x % 2;
                  if ( n== 0 )
                  {
                  System.out.println( x + "<" );
                  }
                  else
                  {
                  System.out.println( x+ " " );
                  }
              }   
          }
      }

  

Picture of the output

Assignment 84