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) Ii) The Average Of The Inte

匿名用户 最后更新于 2021-12-01 19:36 计算机类Computing

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) ii) The average of the integers (with 1 decimal point of precision) iii) 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

已邀请: