Question 2 [25] Write a single program to do all of the following: First your program should declare an array of 10 inte
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2 [25] Write a single program to do all of the following: First your program should declare an array of 10 inte
Question 2 [25] Write a single program to do all of the following: First your program should declare an array of 10 integers using an initializer list. Next, the program should sort the array into decreasing order. Then the program should print out the elements of the sorted list. Finally, the program should search the array to see whether integer 30 is present. [25]