Answer :
Algorithm to finds the location of the first even integer
locationOfFirstEven(a1, a2, a3, ..., an : integers)
FOR i, 0 to n
IF a[i]%2==0
RETURN i
RETURN -1
Explanation:
Hope you like it
Any Query? Comment Down!
I have written for you, Please upvote the answer as it encourage us to serve you Best !
Get Answers For Free
Most questions answered within 1 hours.