Activity 2

 avatar
unknown
java
3 years ago
311 B
12
Indexable
import java.io.Console;

public class Activity2_Marasigan {
    public static void main(String[] args) {
        int num = 10;
        boolean isOddEven;

        isOddEven = num % 2 == 0;

        num = !isOddEven ? ++num : num;

        System.out.println(isOddEven);
        System.out.println(num);
    }
}
Editor is loading...