What is used in looping to count the number of times of a process being repeated
Answers
Answered by
6
Explanation:
we often make use of a variable (called counter variable) to count the number of times a loop execute!!
for an example:
in the following snippet,we have used a variable a to count the number of iteration..
#java code
int a=0;
for(int i=1;i<=6;i++)
{
a++;
}
System.out.print("no of occurence="+a)
Similar questions