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

Find the median. 4, 20, 1, 13, 17 Enter the correct answer.
Which value is an input of the function? -14 O-2 o ОО 4.
hi i need help on this
HOLY CHICKIE NUGGIES WHAT IS THIS?!?!? I AM CONFUSION?? PLEASE HELP ASAP THIS IS A TIMED QUESTION!!!!
Identify the following parts of the salad you are making: base, body, dressing.​
Please answer correctly !!!!! Will mark Brianliest !!!!!!!!!!!!!!
The ideal exercise routine incorporates which of the following exercises because each type of exercise is needed to maintain your body's range of motion. A. Car
Please answer correctly !!!!! Will mark Brianliest !!!!!!!!!!!!!!
please answer this for me
A penny is dropped from a point on a bridge 94 feet above the surface of the river. If the penny travels 250 feet straight down before it lands at the bottom of