Control variable is used to initialize the loop
Answers
Answered by
0
Answer:
The loop does not execute, even once. This is because the condition of the while statement,
Answered by
0
Answer:
the loop control variable count has been declared somewhere in the program, possibly many statements away from the for statement. This violates the idea that all the parts of the loop are combined in one statement. It would be nice if the declaration of count were part of the for statement. In fact, this can be done, as in the following:
Similar questions
Geography,
3 hours ago
Science,
3 hours ago
Computer Science,
3 hours ago
Geography,
5 hours ago
English,
5 hours ago
Environmental Sciences,
8 months ago
Business Studies,
8 months ago
Political Science,
8 months ago