for loops std:: cpp code example
Example 1: for loops in cpp
for(int i=0; i<=limit; i++)
{
//statement
}
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
}