Ask your own question, for FREE!
Computer Science 17 Online
SourMunchkin7806:

What is the output after the following code segment is executed? int c = 2; int d = 0; while (c <= 10) { d = 1; while (d < c) { d++; } c += d; } System.out.println(c); 2 6 8 11 16

dude:

I got 16

Arrow:

so did i 16

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!