Harshad Number or Niven Number in Java
Harshad numbers are those integers which are divisible by the sum of the digits of the number. Harshad numbers were defined by a mathematician from India, D. R. Kaprekar. Harshad numbers are also called Niven numbers. For example, the number 198. Sum of the digits of the number, 198 => 1 + 9 + 8 = 18, and, 18 …