5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 2 years agoRandom internet people explaining math better then math teacheri.imgur.comimagemessage-square200fedilinkarrow-up11.62Karrow-down160
arrow-up11.56Karrow-down1imageRandom internet people explaining math better then math teacheri.imgur.com5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 2 years agomessage-square200fedilink
minus-squareradix@lemm.eelinkfedilinkarrow-up2·2 years agoOh yeah, I meant generally. Isn’t it most common if not best practice to say for (i = 0; i < whatever; i++)?
minus-squareoutdated_belated@lemmy.sdf.orglinkfedilinkarrow-up2·2 years agoFair. I guess to accommodate zero-indexing so that it still happens whatever times, not whatever + 1 times.
Oh yeah, I meant generally. Isn’t it most common if not best practice to say
for (i = 0; i < whatever; i++)
?Fair. I guess to accommodate zero-indexing so that it still happens
whatever
times, notwhatever + 1
times.