Question

3 What would be the output of the program represented by the following flowchart? start 움 X1 No <? Yes XX41 yox stop No <s? y
0 0
Add a comment Improve this question Transcribed image text
Answer #1

option d). is correct.

because first we give x= 1 then it give value 1234 but when y= 5 then it doesn't satisfy the condition then x becomes 2 then it run the loop and gives output 234 then again y becomes 5 then it doesn't satify the condition again x becomes 3 then it run the loop and gives output 34 then again y becomes 5 then it doesn't satify the condition again x becomes 4 then it runs the loop and give output 4 then y becomes 5 also x becomes 5 so loop stop.

Hence , final output is 1234234344.

So, option d). is correct

Add a comment
Know the answer?
Add Answer to:
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT