Write a "find" method that receives an array of integers A and a value K tosearch for.
The method will return true if K is in A, otherwise, it returns false
The method can't use a loop
Here is an example of usage:
int[] A = {0, 29, 1, 5, 6, 11, 32}int k = 99;if( find(A, k) )display(k + "is an element of A")elsedisplay("k + " is NOT an element of A");
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here