public class Ex02_IfElse {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("μ μ μ
λ ₯ : ");
int num = sc.nextInt();
if( num % 2 == 1 )
System.out.println("νμ μ
λλ€.");
else
System.out.println("μ§μ μ
λλ€.");
sc.close();
}
}
Java
볡μ¬