c++ simple looping code example
Example 1: for loops in cpp
for(int i=0; i<=limit; i++)
{
//statement
}
Example 2: for loop in c++
for (int i = 0; i < 10; i++)
{
cout << i << endl;
}
for(int i=0; i<=limit; i++)
{
//statement
}
for (int i = 0; i < 10; i++)
{
cout << i << endl;
}