C
Join ServerC#
help
❔ 1-100 except 40 and 60
Mmarixthorn3/5/2023
Hello could anyone help me make a simple code that will write out numbers 1-100 except 40 and 60 please
Xx0rld3/5/2023
if (number != 40 || number != 60)
Console.WriteLine(number)
Console.WriteLine(number)
Mmarixthorn3/5/2023
thanks
JJamesK.Polk3/5/2023
Enumerable.Range(1, 100).Except(new List<int>() { 40, 60 }).ToList().ForEach(Console.WriteLine);
AAccord3/6/2023
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.