Assignemnt #105 Even

Code

    /// Name: Caelan Dorstad
    /// Period: 6
    /// Program Name: Even
    /// File Name: Even.java
    /// Date Finished: 4/28/2016
    
    public class Even
{
	public static void main( String[] args )
	{
		for (int i = 0; i < 20; i++)
		{
			System.out.println((i + 1) +" "+ (Even(i + 1) ? "<" : "") + (Div3(i+1)? "=":"") );
		}
	}

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

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

    

Picture of the output

Assignment 10