Assignment # 84 and Even Numbers

Code

    /// Name: Tommy Oyuntseren
    /// Period: 7
    /// Program Name: EvenNumbers
    /// File Name: EvenNumbers.java
    /// Date: 2/18/2016

public class EvenNumbers
{
    public static void main(String[] args)
    {
        int n;
        
        for (n=1; n<=20; n=n+1)
        {
            if (n%2==0)
                System.out.println(n + " <");
            else
                System.out.println(n);
        }
    }
}
   

  

Picture of the output

Assignment 84