define for in cpp code example
Example 1: For Loop in C++
for (int i = start; i < stop; i = i + step){
// statement 1
// statement 2
// etc
}
Example 2: for loop in cpp
//limit can be any number
//you can use any comparison operator
for(int iteration = 0; iteration < limit_number; iteration++)
{
//action in for loop
}