this post was submitted on 30 Sep 2023
943 points (96.4% liked)

Programmer Humor

32410 readers
962 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
[โ€“] [email protected] 24 points 1 year ago (1 children)

Well, it's wrong. The only difference between the two kinds of loops is that do-while starts by unconditionally running the body once

[โ€“] [email protected] 2 points 1 year ago

Yes, that's true. It's also good enough to make an abstract concept more approachable while getting a kick out of it too. Honestly this is more of a "well akcshually" thing that someone who already knows how this works would point out (nobody has so far) than something that misleads students who don't get it. It works.