liamolympic2831 liamolympic2831
  • 19-11-2019
  • Computers and Technology
contestada

Which of the following is the initial statement in the following for loop? (Assume that all variables are properly declared.) int i; for (i = 1; i < 20; i++) cout << "Hello World"

Respuesta :

codiepienagoya codiepienagoya
  • 20-11-2019

Answer:

The answer to the given question is "i=1".

Explanation:

In the given c++ code the we use the for loop. We use this loop when we know exactly how many times it will execute. This loop is also known as entry control loop.

Syntax :

for(initialization; condition ; increment/decrements)  

{  

C++ statement(s);  

}

Example:

for (int i = 1; i < 20; i++)  

{

cout<< "Hello";

}

That's why initial statement for the for loop is "i=1".

Answer Link

Otras preguntas

How did zeppelins improve the industry or society?
quadratic equation in mathsolve and discuss(m-3)x^ 2 -2mx+m+2=0​
what does wcl stand for​
Isidro visits the same park every week. The park has lots of different rock formations. How does the rock at the park change from week to week?
the nevada constitution was amended to include term limits for legislators of how many years
2^2^2^2 - [(2)^2]^3Simplify this expression:​
trini started a new office job and her supervisor trained her for the position. however, her supervisor was not an adequate trainer and left trini with more que
16% of a value is £88 Work out the original value Give your answer in pounds.​
The sum is 16 and the difference is 12 what is the answer
)Use the map to answer the following question: Map of Alexander the Greats empire. Area stretches from Macedonia and the northeastern top of the African coast i