Solved

What Is the Output of the Following Code: for (Loop

Question 51

Multiple Choice

What is the output of the following code: for (loop = 1; loop <3; ++loop)
   System.out.print(1) ;
   for (loop2 = 1; loop2< 3; ++loop2)
      System.out.print(2) ;


A) 112222
B) 1232212322
C) 122122
D) 122212221222

Correct Answer:

verifed

Verified

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

Related Questions