Engineering Full Stack Apps with Java and JavaScript
What will the following code print when compiled and run?
class Test{ public static void main(String args[]){ int c = 0; A: for(int i = 0; i < 2; i++){ B: for(int j = 0; j < 2; j++){ C: for(int k = 0; k < 3; k++){ c++; if(k>j) break; } } } System.out.println(c); } }
Select 1 option
A. 7
B. 8
C. 9
D. 10
E. 11