Chapter 14: Problem 5
Write a recursive void function that takes a single int argument \(n\) and writes integers \(n, n-1, \ldots, 3,2,1 .\) Hint: Notice that you can get from the code for Self-Test Exercise 4 to that for Self-Test Exercise 5 (or vice versa) by an exchange of as little as two lines.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.