Ask Question

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"

+5
Answers (1)
  1. 13 April, 22:52
    0
    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".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is the initial statement in the following for loop? (Assume that all variables are properly declared.) int i; for (i ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers