Question: Using this code: #include using namespace std; int main(){ int ch = 1; // while loop to continue untill users wants while(ch==1){ int arr[5]; //reading

Using this code:

#include using namespace std; int main(){ int ch = 1; // while loop to continue untill users wants while(ch==1){ int arr[5]; //reading 5 values from user cout<<"Enter 5 values: "; for(int i=0;i<5;i++) cin>>arr[i]; //printing the those values for(int i=0;i<5;i++) cout<>ch; } }

Using C++ Write a sequential search in a separate function.

-Display the index the array was found in and also the value that was in the array at that index.

-If the number was not found, display not found.

Please use good comments in the code

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!