# Harshad Numbers

Choose your prefered Language:

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.

Example:

- 1+7+2+9=19 and 1729/19=91.

Write a program in C language that it will find all the Harshad numbers that are less than 1000 and insert them into a one-dimensional array.

(Note: The insertion of the elements into the array should be dynamic.)