Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

l Describe the development process.

Answered: 1 week ago

Question

What is the IRR of the following set of cash flows

Answered: 1 week ago