Assignemnt #105 Evenness Method

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Evenness Method
    ///File Name: E.java
    ///Date: 3/31/2016
  
public class E
{
	public static void main( String[] args )
	{
		for (int i = 0; i < 20; i++)
		{
			System.out.println((i + 1) +" "+ (isEven(i + 1) ? "<" : "") + (isDiv3(i+1)? "=":"") );
		}
	}

	public static boolean isEven(int n)
	{
		return (n%2==0);
	}

	public static boolean isDiv3(int n)
	{
		return (n%3==0);
	}
}

    

Picture of the output

assignment105