#include "library.h" void write_the_line() { print("I will do whatever I did in class again."); new_line(); } /* This is the first version, the plan is To do something N times 1. Do it once 2. only if N > 1 2a. Do it N-1 times void write_the_line_N_times(int N) { write_the_line(); if (N > 1) write_the_line_N_times(N - 1); } */ /* The second version is slightly superior, the new plan is To do something N times 1. if N > 0 1a. Do it once 1b. Do it N-1 times */ void write_the_line_N_times(int N) { if (N > 0) { write_the_line(); write_the_line_N_times(N - 1); } } void main() { write_the_line_N_times(7); }