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

What is the output after the following code segment is executed? int a = 6; int b = 0; while (a < 20) { b = 10; while (b > a) { b−−; } a += b; } System.out.println(a);

dude:

I got 22

SourMunchkin7806:

Awesome thanks. I have some others can you help?

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!