/* ECP: FILEname=fig11_1.c */ /* 1*/ /* Compute Sum Of The First N Integers Recursively */ /* 2*/ unsigned long int /* 3*/ Sum( unsigned int N ) /* 4*/ { /* 5*/ if( N == 1 ) /* Base Case */ /* 6*/ return 1; /* 7*/ else /* Recursive Call */ /* 8*/ return Sum( N - 1 ) + N; /* 9*/ }