Hi guys!
I really need help for my school task in c#
TASK:
Write a method find (), which locates in the field given element and returns the index of the first occurrence of this element.
/ / <a> representing a box and the <el> element we are looking for
static int find (int el, int [] a)
{
/ / INSERT HERE YOUR CODE
/ * Your function should not return -2, but rather
index found the item (if it is not found,
should return -1) * /
return -2;
}
Any suggestions or help will be appreciated.