raman's teacher asked him to name the variable ,which keeps count of the number of repetition performed in a loop but he is unable to recollect the same. help raman to answer this query
Answers
Answered by
6
Name of the variable is "Control Variable"
Explanation:
- Control variable is used in programming language that helps in controlling the flow of the program.
- The count of the number of repetitions is stored in a variable known as a counter or index variable.
- When the index attains the certain value then the loop terminates.
- Count-controlled repetition is often referred to as a definite repetition because the number of repetitions is already known before the loop starts to run.
Similar questions
Science,
7 months ago
Environmental Sciences,
7 months ago
English,
1 year ago
Physics,
1 year ago
Biology,
1 year ago