result = array Where(even) Skip(9) Take(1)
So basically you're just completely ignoring what I said and trying to write code with no regard for an algorithm. If you're going to write code with no idea what the code is supposed to do, even after I specifically addressed that, then why would you be surprised that it doesn't work?To find the even numbers i said:
for ( i = 0; i < arr.length; i++)
{
If (arr[ i ] %2 == 0)
}
But i dont know how to write so that i get the 10th number from the even number i received
How is what you posted formal steps that anyone could follow to get the desired result?How would you do it manually, i.e. with pen and paper. Work that out and formalise the steps into an algorithm that you could provide to anyone else to follow to get the same result.
Are you talking about what i just posted after skydiver responded?That's not an algorithm. An algorithm is DETAILED, STEP-BY-STEP instructions for HOW to do something, Again, you've ignored what I said:
How is what you posted formal steps that anyone could follow to get the desired result?
I have to do it for a assignment and im sorry if i dont speak with the right terms im still new to c#