Write a C programming to check whether a given number with base b (2 <= b<= 10) is a Niven number or not.
----------------------------------------------------------------
From Wikipedia,
In recreational mathematics, a harshad number (or Niven number) in a
given number base, is an integer that is divisible by the sum of its
digits when written in that base. Harshad numbers in base n are also
known as n-harshad (or n-Niven) numbers. Harshad numbers were defined by
D. R. Kaprekar, a mathematician from India. The word "harshad" comes
from the Sanskrit harṣa (joy) + da (give), meaning joy-giver. The term
“Niven number” arose from a paper delivered by Ivan M. Niven at a
conference on number theory in 1977. All integers between zero and n are
n-harshad numbers.
The number 18 is a harshad number in base 10, because the sum of the
digits 1 and 8 is 9 (1 + 8 = 9), and 18 is divisible by 9 (since 18/9 =
2, and 2 is a whole number).
----------------------------------------------------------------
Test Data
Input: base 10: Number 3
Output: 3 is a Niven Number
Input: base 10: Number 18
Output: 18 is a Niven Number
Input: base 10: Number 15
Output: 15 is not a Niven Number