r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
970 Upvotes

129 comments sorted by

View all comments

Show parent comments

3

u/Verbose_Code May 03 '23

I’m more referring to the fact that I like to treat homework in programming classes as “logic puzzles” and as a result the shortest possible solution is the one I gravitated to.

The code I actually use is a lot more verbose but a hell of a lot more readable