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
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
Computer Science,
6 months ago
Social Sciences,
6 months ago
Math,
1 year ago
English,
1 year ago
English,
1 year ago