Menu
Question Index
...

What will be the output of the following program?

public class Value {
    public static void main(String[] args) {
        int x = 15;
        int y = x % 4;
        int z = y * 24;
        System.out.println(z / 2);
    }
}


84
36
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Modulus Operator In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App