文件名称:2968_EX08
介绍说明--下载内容均来自于网络,请自行研究使用
1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them. 2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in: (a) each row (2 rows) (b) the whole array 3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem. - 1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them. 2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in: (a) each row (2 rows) (b) the whole array 3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EX0801.CPP
EX0802.CPP
EX0803.CPP