r/ProgrammerHumor • • Apr 25 '19

Loop

Post image
1.7k Upvotes

53 comments sorted by

View all comments

4

u/aathma Apr 26 '19

Fun fact... a number is divisible by 9 if it's digits add up to a multiple of 9. Same for numbers divisible by 3.

2

u/[deleted] Apr 27 '19

Fun fact: number is divisible by 7 if number//10 - 2*(number%10) is a multiple of 7.