cklangford98 cklangford98
  • 06-03-2018
  • Computers and Technology
contestada

Which type of loop is best if you do not know how many times you need the loop to run?

Respuesta :

Аноним Аноним
  • 06-03-2018
while:  the loop must repeat until a certain "condition" is met.  If the "condition" is FALSE at the beginning of the loop, the loop is never executed.  The "condition" may be determined by the user at the keyboard.  The "condition" may be a numeric or an alphanumeric entry.  This is a good, solid looping process with applications to numerous situations. 
while:int ctr = 1;
while (ctr < = 20)
{
     cout<< ctr++ <<"\n";
}



HOPE i HELPED! brainliest? :D 
Answer Link

Otras preguntas

The study of all chemicals containing carbon 1. Applied Chemistry 2. Bio Chemistry 3. Organic Chemistry 4. Inorganic Chemistry
Form of energy that exhibits wavelength behavior as it travels through space. Example: Mircrowave rays, U.V. rays.
Clock. What is the measure of the angle (in degrees) that the minute hand traces in 20 minutes?
What are the World's Largest Islands?
Find the least common multiple of x3 - x2 + x - 1 and x2 - 1. Write the answer in factored form. A. (x + 1)^2(x - 1)
How do the characteristics of living things contribute to an organisms survival
where are albino tigers found
cartography is the science of
Which Nation Has the Most Expensive Gas?
Clock. What is the measure of the angle (in degrees) that the minute hand traces in 20 minutes?