do loop syntax c++ 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 = 0; i < 10; i++)
{
cout << i << endl;
}
for (int i; i < 10; i++)
{
cout << i << "\n";
}
for (int i = 0; i < 10; i++)
{
cout << i << endl;
}