Ask Question

int puzzle (int start, int end) { if (start > end) return start - end; else if (start = = end) return start + end; else return end * puzzle (start + 1, end - 1); } Consider the accompanying definition of a recursive function. What is the output of the following statement? cout << puzzle (3, 7) << endl; a. 10 b. 21 c. 42 d. 420

+3
Answers (1)
  1. 26 September, 12:13
    0
    d. 420
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “int puzzle (int start, int end) { if (start > end) return start - end; else if (start = = end) return start + end; else return end * puzzle ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers