#include #include using namespace std; void f(int i); int main() { f(1); //Output the ints from 1 to 10 inclusive. return EXIT_SUCCESS; } //Output the ints from i to 10 inclusive. void f(int i) { if (i <= 10) { //If the job is not finished yet, cout << i << "\n"; //do only the first part of the job. f(i + 1); //Then do the rest (if any) of the job. } }