Ask Question
1 April, 05:34

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"

+3
Answers (1)
  1. 1 April, 06:44
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers