baatliwala@lemmy.world to Programmer Humor@programming.dev · 15 hours agoLook at the way he writes for loops too smhlemmy.worldimagemessage-square20linkfedilinkarrow-up1331arrow-down111
arrow-up1320arrow-down1imageLook at the way he writes for loops too smhlemmy.worldbaatliwala@lemmy.world to Programmer Humor@programming.dev · 15 hours agomessage-square20linkfedilink
minus-squareJohnAnthony@lemmy.dbzer0.comlinkfedilinkarrow-up4·8 hours agoBeginner mistake, which is perfectly fine! Just use i-1 inside the loop and i <= values.Length as the condition.
Beginner mistake, which is perfectly fine! Just use
i-1inside the loop andi <= values.Lengthas the condition.