Question 2 (15%) Write a complete program that prompts the user to enter a series of integers terminated by a 0. The program should then print positive integer as follows: i) The number of integers entered (not including the 0) The average of the integers (with 1 decimal point of precision) The maximum integer iv) The minimum integer The sample output of this program is shown in Figure 13. Enter a series of integers terminated by a 0: 85 95 75 67 0 You have entered 4 integers. The average is 80.5 The maximum is 95 The minimum is 67 Figure 13 -last page (14 pages) 14
没有找到相关结果