❔ Erklärung
First of all: I am new to programming.
i want to only write nummers in a array that are greater then 10 which condition do i have to put into this programm: (at the ..........)
int[] numArray = { 1, 11, 22 };
Console.WriteLine("> 10 : {0}", Array.Find(numArray, .........));
4 Replies
loop with an if or linq
if it's just to write to the console then loop with a condition yeah
ty
so like that
int[] numArray = { 1, 11, 22 };
for (int i = 0; i < numArray.Length; i++)
{
if (numArray[i] > 10)
{
Console.WriteLine("> 10: {0}", numArray[i]);
}
}
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.