Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { int myNum = 5; if (myNum % 2 == 0) { System.out.println(myNum + " is even"); } else { System.out.println(myNum + " is odd"); } } }
5 is odd