Question: Lunix #include Write a C program that ask users to input a series of integers which are in increasing order (i.e., an integer is NOT

Lunix #include

Write a C program that ask users to input a series of integers which are in increasing order (i.e., an integer is NOT smaller than the one immediately before it). The input will end with the number 0. Assume users will never input more than 10 integers before input 0. After users input all the numbers, ask the user input another number m. Finally print to screen if the number m is in the series

[[ example Input a series of integers (ended with 0): 1 3 4 5 7 8 15 17 20 0(must be in one line)

Input a number to find from the series: 9

The number 9 is not in the series you gave. ]]

You have to use an array to store the input numbers a[0], ..., a[n-1]

find if m is in array a from index 0 to n-1found = search(a, 0 , n-1, m)

if found print m is found in a. Otherwise print m is not found in a

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!