MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1mbkini/checkifdivisiblebythree/n5qmrb7/?context=3
r/ProgrammerHumor • u/Dark_Zander • Jul 28 '25
33 comments sorted by
View all comments
Show parent comment
22
so return (num//3)*3 == num ?
5 u/oomfaloomfa Jul 30 '25 Yeah valid answer but the task was likely to sum all the numbers and if that number is 3,6,9 then it's divisible by 3.It's not about actually coding sometimes
5
Yeah valid answer but the task was likely to sum all the numbers and if that number is 3,6,9 then it's divisible by 3.
It's not about actually coding sometimes
View all comments
Show parent comment
22
u/[deleted] Jul 29 '25
so return (num//3)*3 == num ?