136,400 views
41 votes
41 votes
What is printed when the following code has been executed?

int x = 15;
int y = 4;
System.out.println((2 * x + y) % x);
15
4
34
2
19

User Mike Versteeg
by
2.9k points

1 Answer

30 votes
30 votes
Hey it is 15 hope this helps
User Markdon
by
3.3k points