[-] olsonexi@lemmy.wtf 2 points 11 months ago

idk, maybe C# just doesn't have great syntax for the way you're doing it or something, but I think the simplest solution is the most readable in this case:

for (int i = 1; i < JUST_THE_WORST_NUMBER; i += 2) {
    Console.WriteLine(i);
}
[-] olsonexi@lemmy.wtf 2 points 1 year ago

you say this as if it's a good thing

view more: ‹ prev next ›

olsonexi

joined 1 year ago