- 1 Partially Filled Array Practice A Declare An Int Type Array Of Size 100 Use A Const Variable For The Maximum Size 1 (33.94 KiB) Viewed 129 times
1. Partially filled array practice: a. Declare an int type array of size 100 (use a const variable for the maximum size)
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Partially filled array practice: a. Declare an int type array of size 100 (use a const variable for the maximum size)
1. Partially filled array practice: a. Declare an int type array of size 100 (use a const variable for the maximum size) b. Let the user to enter some numbers (positive integers) to the array, ended by -1 C. Display all the numbers in the array d. Find the largest number from the list e. Add the following numbers to the array, and display all the numbers in the array: 10, 15 f. Sort the array in the descending order and display the result to the screen Enter some numbers, ended by -1: 45 23 88 9 34 7 12 48 -1 The current elements are: 23 88 934 7 12 48 The largest number is 88 Now the elements are: 45 88 9 34 7 12 48 10 15 After sorting, the elements are: 88 45 23 48 45 34 23 15 12 1997