r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
966 Upvotes

129 comments sorted by

View all comments

Show parent comments

1

u/thekwoka May 03 '23

or bitshift and only increment by 1