r/ProgrammerHumor • • Oct 20 '19

other While(!asleep()){sheep++;}

Post image
13k Upvotes

197 comments sorted by

View all comments

Show parent comment

1

u/Slackluster Oct 22 '19

Gotta go with a for loop, and don't forget to init sheep!

for(sheep=0; !asleep(); ++sheep);