Computer Science, asked by vishal8663, 1 year ago

hello guys please help me the output of this program.
also explain how the output become.​

Attachments:

vishal8663: i do but not understand the output. please explain the output bro

Answers

Answered by TechManGujarati
1

this is do while loop where int i =1,

when the computer read the program it will save the value of i=1,

the it will enter in loop and it will print the value of variable i which is 1.

while is condition when you want to stop the loop

so here loop will stop when i= i-1

so it will print 1 in screen and exit the loop then programm.

Similar questions