Question: 2) Write a code which stores 20 numbers in an array of Integers. The numbers should be random and between 1-100. You can use any

2) Write a code which stores 20 numbers in an array of Integers. The numbers should be random and between 1-100. You can use any method to generate random numbers. The numbers should be unique. This c program finds the largest of two numbers in the array and smallest two numbers. The format of print should be something like this:

3) //////////////////////////////////////////////////////////////

4) Array numbers: [ 3 , 6 , 8, 12 , 76 , 55 , 98 , 4 , 39 , 54 , 32 , 21 , 43 , 1 , 66 , 87 , 99 , 23 , 67 , 90 ]

5) //////////////////////////////////////////////////////////////

6) Largest two numbers: 99 , 98

7) Smallest two numbers : 1 , 3

8) ////////////////////////////////////////////////////////////

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!