1. Write a program that reads ten numbers supplied by the user into a single subscripted 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-subscripted 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.
"subscripted value is neither a" 是一条程序错误信息。它表示在程序中发现了一个下标运算符(如 "[]"),但是被下标运算符引用的值不是一个可下标的对象(如数组或列表)。这通常是由于在变量未赋值或赋值为非数组对象的情况下进行下标操作造成的。