making a for loop inside int main code example Example: how to make a Loop in c++ for (int i; i < 10; i++) { cout << i << "\n"; }