C Program to Check Whether a Number is a Harshad Number or Not
If a number is divisible by the sum of its digits, then that number is a Harshad Number. For example, 144 is a Harshad number because 1 + 4 + 4 = 9, and 144 is divisible by 9. Some other examples of Harshad numbers are 18, 27, 54, 12, 156, 1729, and so on.
C Program to Check Whether a Number is a Harshad Number or Not Read More »