i have write code for searching element in array of intgers
its working but i have to do this program using function.
can anyone write code for function?
i have write code for searching element in array of intgers
its working but i have to do this program using function.
can anyone write code for function?
Surely you are aware of the homework policy by now, that we do not hand out solutions.
It's good you have a working version. Now try putting the appropriate code into a function as per your requirements. If you don't know how to write functions, read about this in your text book or online tutorial, and try to understand the concepts before applying them to your code.
If at any point you get stuck, post your progress along with specific questions.