Assignemnt #105
Code
//colin hinton
//5th period
//Even.java
//2/29/2016
public class Even
{
public static void main (String[] args)
{
for (int x = 1; x <= 20 ; x = x + 1)
{
System.out.print(x);
if (isEven(x) == true)
{
System.out.print("<");
}
if (Three(x) == true)
{
System.out.print("=");
}
System.out.println();
}
}
public static boolean isEven(int n)
{
if (n%2 == 0)
{
return true;
}
else
{
return false;
}
}
public static boolean Three(int m)
{
if (m%3 == 0)
{
return true;
}
else
{
return false;
}
}
}
Picture of the output