output for the question given
Attachments:
vikas6237:
give
Answers
Answered by
0
Answer:
2345
234
23
Explanation:
while loop will run until Num value>9
so as Num is 2345 > 9 condition is true so 1. we get into loop there 2.printing Num to output
and 3. dividing by 10 and assigning divided output value to Num
for first time Num is 2345 printed on output and added newline
on step 3 Num become 234
goto while condition again it > 9 cond true step 2. print on output 234. on step 3.Num become 23
now again go to while condition its true again get into loop print Num value on output
on step3. Num become 2 now goto condition now 2 is not greater than 9 its false end of loop
Similar questions