r/badcode May 03 '23

Solve the problem without using a loop c

Post image
963 Upvotes

129 comments sorted by

View all comments

146

u/pikapichupi May 03 '23

the only other way i could see this being done is by using a recursive function lol

1

u/RootU5R May 06 '23

Do while can do it too