A program to check whether a number is a Harshad number or not (Niven number) is discussed here. Harshad Number is an integer that is divisible by the sum of its digits.
Input format:
Sample Input:
1729
Sample Output:
Harshad Number
@@coding::1@@
Recommended Programs