for (int i = 0; i < 10; i++) {
    std::cout << i << "\n";
}

See: Loops

Comments