menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
How many times is the body of the loop executed? int i = 1; while (i<10) { cout << i; if (i == 5) break; i++; }
asked
Feb 16, 2022
3.7k
views
2
votes
How many times is the body of the loop executed?
int i = 1;
while (i<10)
{
cout << i;
if (i == 5)
break;
i++;
}
Computers and Technology
college
Vishwajit Palankar
asked
by
Vishwajit Palankar
5.1k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
The loop will run 5 times.
Rwst
answered
Feb 22, 2022
by
Rwst
4.5k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
5.3m
questions
6.9m
answers
Other Questions
Why is it important to study in a quiet well lit area A can you read it out loud and not bother anyone B you can focus on your studying without distractions C reading books in a dark too Will strain your
What will be the value of bonus after the following code is executed? int bonus, sales = 6000; if (sales < 5000); bonus = 200; else if (sales < 7500); bonus = 500; else if (sales < 10000); bonus = 750; else if (sales < 20000); bonus = 1000; else; bonus = 1250; A. 200 B. 500 C. 750 D. 1000
What is the first step you would take to create a table of authorities?
What is often called the brain of a computer
In Java a final class must be sub-classed before it. ?? True ?? False
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org