WAP to find elements in array
Answers
Answered by
1
Answer:
Logic to search element in array
1. Input size and elements in array from user....
2. Input number to search from user in some variable say to Search
3. Define a flag variable as found
. 4. Run loop from 0 to size...
. 5. Inside loop check if current array element is equal to searched number or not.
Similar questions