do loop c++ code example
Example 1: how to make a Loop in c++
for (int i; i < 10; i++)
{
cout << i << "\n";
}
Example 2: c++ do while loop
do {
// codes;
}
while (testExpression);
for (int i; i < 10; i++)
{
cout << i << "\n";
}
do {
// codes;
}
while (testExpression);