Harshad Number

A number is said to be Harshad if it's exactly divisible by the sum of its digits.
# 7 + 5 = 12
# 75 is not exactly divisible by 12
Take a input a function that determines whether a number is a Harshad or not.
75
Total : 0 Discussion
Login