Solved

How Many Times Will the Output Line Be Printed in the Following

Question 22

Multiple Choice

How many times will the output line be printed in the following code snippet?
For (int num2 = 1; num2 <= 3; num2++)
{
For (int num1 = 0; num1 <= 2; num1++)
{
System.out.println("" + num2 + " " + num1) ;
}
}


A) 3 times
B) 6 times
C) 9 times
D) 12 times

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions