Question: how to write the C code by only use #include #include for this question 4. Thirty random numbers between 1 and 20 are entered into
how to write the C code by only use #include


4. Thirty random numbers between 1 and 20 are entered into an array named nums and the number to be searched is entered through the keyboard by the user. Write a C program, numSearch.c, to display the generated random numbers and find if the number to be searched is present in the array and if it is present, display the number of times it appears in the array. The user can enter more than one number to be tested for search. The program terminates when the user enters a number that is less or equal to 0. A Sample interaction is as follow: Generated numbers are: 4, 7,18,16,14,16, 7,13,10, 2, 3, 8,11,20, 4,7,1, 7,13,17, 12, 9, 8,10, 3,11, 3, 4, 8,16, Enter a number to be found0 for exit): 13 13 appears 2 time(s). Enter a number to be found (
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
