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