C
C#2y 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
Angius2y ago
loop with an if or linq
Moods
Moods2y ago
if it's just to write to the console then loop with a condition yeah
Juliandyce
JuliandyceOP2y 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
Accord2y 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.
Want results from more Discord servers?
Add your server