What counter does? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What counter does?

17th Jul 2019, 10:34 AM
Sanchi
Sanchi - avatar
2 Answers
+ 1
Counter is just a user defined variable to count the number of iterations a loop does
17th Jul 2019, 11:16 AM
Nandini
0
Counter counts the amount of time a code should execute within the given loop. If the condition of the loop is met with the help of a counter, the loop terminates.
17th Jul 2019, 1:42 PM
Franky BrainBox
Franky BrainBox - avatar