// Program to print the number "x" on screen, 10 times in pure C++

#include <iostream>
int main() {
int x;
for(x = 1; x < 11; ++x ) {
    std::cout << x << "\n"; /* prints the number "x" on screen 10 times
    # such as:
    1
    2
    3
    ...
    */
    }
    printf("\nDone!\n");
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: