Question

What is the output of the following C++ code? int count = 1; int num = 25; while (count < 25) { num--; count++; } cout << cou

In this while loop statement, while (counter < 10), where counter is an int variable. Which statement below is an equivalent

A for loop performs repetition, and an if-else statement performs selection. True False
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answers:::

1)While (count<10) is equivalent to while(count<=9)
2) for loop is used for repetition.. if else is used for select pertucular operation based on condition.
3) after execution of above code.. count ends with 25 and num ends with 1.

Add a comment
Know the answer?
Add Answer to:
What is the output of the following C++ code? int count = 1; int num =...
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