minus-squareolsonexi@lemmy.wtftoProgramming@programming.dev•Real quick question about the "break"linkfedilinkarrow-up2·10 months agoidk, 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); } linkfedilink
minus-squareolsonexi@lemmy.wtftoTechnology@lemmy.ml•FCC possibly to ban cable-satelite-tv early termination feeslinkfedilinkarrow-up7·edit-210 months agoWho even has cable or satellite anymore? linkfedilink
minus-squareolsonexi@lemmy.wtftoTechnology@lemmy.ml•Possible reversion of an 80-year-old to the age of 26 using pig's bloodlinkfedilinkarrow-up2·11 months agoyou say this as if it’s a good thing linkfedilink
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); }