Question: In C please 1. Use the code attached to this question as a template to start working in your solution. 2. Declare an array that

In C please In C please 1. Use the code attached to this question asa template to start working in your solution. 2. Declare an array

1. Use the code attached to this question as a template to start working in your solution. 2. Declare an array that can hold 10 integer numbers. The template code provided already has a for loop that generates 10 random integer numbers, use that for loop to fill up the array using those random numbers. 3. Print all the numbers in the array to the screen, separated by a comma. Write a program to determine the 2 largest integers in the array, and print those numbers. Hint: You can declare integer variables to store the largest and the second largest numbers in the array to keep track as you make comparisons using the if...elseif statement. The following is an example of how your program should look when you execute it: Remember that the numbers are random so you will never get these exact same numbers when you execute your code!!!!!! "D:\A Programs 2021_Spring Quiz2\bin\Debug Quiz2.exe" 24, 13, 3, 81, 21, 9, 54, 30, 63, 37, The largest number is: 81 The second largest number is: 63 #include #include #include // Enables use of time() int main(void) { int i, number; srand((int)time()); // Unique seed for (i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!