simple c++ program with loop and function code example
Example 1: how to make a Loop in c++
for (int i; i < 10; i++)
{
cout << i << "\n";
}
Example 2: For Loop in C++
for (int i = start; i < stop; i = i + step){
// statement 1
// statement 2
// etc
}