460
you are viewing a single comment's thread
view the rest of the comments
[-] vandsjov@feddit.dk 1 points 1 week ago

No, no, I would convert the number to a string and just check the last char to see if it was even or not.

this post was submitted on 15 Jul 2025
460 points (94.7% liked)

Programmer Humor

37334 readers
252 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS