this post was submitted on 06 Mar 2024
314 points (93.1% liked)

Programmer Humor

32572 readers
78 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] _lilith@lemmy.world 32 points 8 months ago* (last edited 8 months ago) (1 children)

The actual joke is that they were trying to play dumb/fun nerd computer games. The cool fish basically just told them to count to 1000 instead

for that little bit of program there x is set to 1 and x++ is just another way to say "add one to this number". The loop runs until x is 1000 thus all the x values when they are "running" the program manually

[โ€“] LeFrog@discuss.tchncs.de 3 points 8 months ago

Thx, got it :D