C
C#13mo ago
Juliandyce

❔ 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
Angius
Angius13mo ago
loop with an if or linq
Moods
Moods13mo ago
if it's just to write to the console then loop with a condition yeah
Juliandyce
Juliandyce13mo ago
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]); } }
Accord
Accord13mo ago
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.