Question: I run this code and I found the output to be 30, 20, 10, 33, 22,11, 36, 24, 12. but I don't know why. can

 I run this code and I found the output to be

I run this code and I found the output to be 30, 20, 10, 33, 22,11, 36, 24, 12. but I don't know why.

can you please explain this to me. why is the output like this. and how does this nested do while work.

Thanks.

int a10; do int b = 3; do System . out . print f( "%d ", b * a ) ; } while (-b >= 1 ) ; a+= 1; while a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!