5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 3 years agoRandom internet people explaining math better then math teacheri.imgur.comexternal-linkmessage-square208linkfedilinkarrow-up11.74Karrow-down163
arrow-up11.68Karrow-down1external-linkRandom internet people explaining math better then math teacheri.imgur.com5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 3 years agomessage-square208linkfedilink
minus-squarePitri@lemmy.blahaj.zonelinkfedilinkarrow-up10·3 years agothere is no reason for a (non-foreach) for loop to be any more or less finite than a while loop. for (a; b; c) { d; } is just syntactic sugar for { a; while (b) { d; c; } } in most or all languages with c-like syntax.
there is no reason for a (non-foreach) for loop to be any more or less finite than a while loop.
for (a; b; c) { d; }is just syntactic sugar for
{ a; while (b) { d; c; } }in most or all languages with c-like syntax.