Write a program to accept a number and check and display whether it is a Niven number or not. (Niven number is that number which is divisible by its sum of digits)
DO THE PROGRAM USING BufferedReader
Answers
Answered by
0
Answer:
Example: Sample Input 126
Sum of its digits = 1 + 2 + 6 = 9 and 126 is divisible by 9.
Similar questions