Assignment = Notice Even Numbers

Code

  /// Name: Sam Wilson
  /// Period: 6
  /// Program Name: Notice Even Numbers
  /// File Name: notice.java
  /// Date Finished: 2/27/16
 
  
import java.util.Scanner;
import java.util.Random;
    
    public class notice
    {
        public static void main(String[] args)
        {
            
           for ( int x = 1; x <= 20; x++ )
           {
               if (x % 2 == 0)
                {
                    System.out.println(x +" <" );
                }
                else
                {
                    System.out.println(x);
                }
          }
        
        }
    
    }

    

Picture of the output

Assignment 31