Question

Question 28 What is the output of the following program? Assume code is correct. #include <iostream> using namespace std; int
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Output:

ZZZZZZZZZ

ZZZZZZZZZ

ZZZZZZZZZ

ZZZZZZZZZ

(Each row have 9 Z's with total of 4 rows)

Outer while loop run 4 times from 1 to 4.

And for each outer loop, inner for loop iterates for 9 times from 0 to 8. And it prints Z each time.

Add a comment
Know the answer?
Add Answer to:
Question 28 What is the output of the following program? Assume code is correct. #include <iostream>...
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