1. Engineering
  2. Computer Science
  3. in c write a program that accepts some unknown number...

Question: in c write a program that accepts some unknown number...

Question details

In C++.

Write a program that accepts some unknown number of positive integers with ZERO signifying the end of input. Write a recursive procedure that will store the LAST 20 values in an array. After the recursion terminates, output the contents of the array (in any order) AND display the average value of the last 20 integers. You may assume that all input is correct AND that at least 20 values are input.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution