Solved

What Is the Output of the Code Below? for (Int

Question 122

Multiple Choice

What is the output of the code below? for (int val = 0; val < 4; val ++)
{
System.out.print ("+") ;
For (int num = 0; num < val; num++)
{
System.out.print ("0") ;
}
}


A) +0+00+000+0000
B) +000+000+000+000
C) ++0+00+000
D) ++++000000

Correct Answer:

verifed

Verified

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

Related Questions