Write a menu driven Java program to input a number and check and display-
i. It is a Niven number or not.
[Hint: A number is a Niven number if it is divisible by the sum of its digits.]
ii. It is a Neon Number or not.
[Hint: A number is said to be a Neon number if the sum of the digits of the square of the number is equal to the number itself.]
Answers
Answered by
0
Answer:
i] Yes.
ii] Yes.
Hope this helps you ^_^. Plz mark ;)
Similar questions