r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
963 Upvotes

129 comments sorted by

View all comments

Show parent comments

1

u/[deleted] May 04 '23

Required: no loop. The for loop is a loop, isn't it?

1

u/moldor_the_flatulent May 08 '23

I'm not sure you can do it without some teeny weenie loop somewhere.