Java Arithmetic Operations Magic!

Report a typo

Consider the following Java code snippet:

int a = 5 + 7;
int b = a * 3;
int c = b / 4;
int d = b % c;
System.out.println(d);

What would be the output of this code?

Select one option from the list
___

Create a free account to access the full topic