Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

Students also viewed these Databases questions