Question

4 How many times char A will be printed? (repetition of a statement) Enter your answer

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For the number of times the loop will run, and if the statement is inside the the loop body, the char A will be printed for n times.

For eg.:

int n = 10;

char A = 'P';

for(int i=0;i<10;i++)

{

cout<<A<<endl;

}

//This will print 'P' for 10 times as n = 10

//Output

P

P

P

P

P

P

P

P

P

P

Add a comment
Know the answer?
Add Answer to:
4 How many times char A will be printed? (repetition of a statement) Enter your answer
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