Engineering Full Stack Apps with Java and JavaScript
Consider the following method:
static int mx(int s){ for(int i=0; i<3; i++){ s = s + i; } return s; }
and the following code snippet:
int s = 5; s += s + mx(s) + ++s; System.out.println(s);
What will it print?
Select 1 option
A. 21
B. 22
C. 23
D. 24
E. 25
F. 26