Assignemnt #84 Noticing Even Numbers

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Noticing Even Numbers
    ///File Name: NEN.java
    ///Date: 3/2/2016
  
public class NEN
{
    public static void main( String[] args)
    {
        for(int x=1 ; x <=20 ; x=x+1)
        {
            System.out.print(x + " ");
            if(x%2 == 0)
            {
                System.out.println("This is an even number.");
            }
            else
            {
                System.out.println("This is an odd number.");
            }
        }
    }
}


    

Picture of the output

assignment84