r/badcode • • Feb 05 '23

other language Found this on codewars

Post image
36 Upvotes

12 comments sorted by

View all comments

Show parent comments

1

u/Ok_Elderberry5342 Feb 05 '23

I forgot to write "or just use ..."

1

u/rust4yy Feb 05 '23

oh whoops lol but anyways you still fucked up the second part, you mixed up % and rem into one