why are you using count in the for loop for increasing numbers…
count in c++ is used to count the number of occurences.
Use of count in the for loop
Hi @sankalparora5
Yes you are correct that count is used for to count the number of occurrences. But in the for loop we have used cnt as a variable, instead of cnt you can use any variable you want (like i,j,x,y).
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.