Write a program to accept a number and check and display whether it is a Niven number or not.

Published: 05 October 2021
on channel: Coder Bano
628
15

Write a program to accept a number and check and display whether it is a Niven number or not.
Niven number
Niven number in java
How do I find my Niven number?
Program Niven number in java
Niven Number Program in Java
Niven Number Program in Java | Harshad ( or Niven ) number
Harshad number
Harshad number in java
Program Harshad number in java
Harshad Number Program in Java

A number is said to be a Niven number or Harshad number if the number is divisible by the sum of the digits of the number. For example, if the number is 126, the sum of the digits is 1+2+6=9 and the number '126' is divisible by 9. Therefore, 126 is a Niven number.
Example :
Input : 126
Output : Niven Number = 126

Input : 125
Output : Not Niven Number = 125

ques :
Write a program to accept a number and check and display whether it is a Niven number of

not.
(Niven number is that number which is divisible by its sum of digits).

Example:

Consider the number 126.

Sum of its digits is 1 + 2 + 6 = 9 and 126 is divisible by 9.

#java
#bluej
#nivenNumber

*****************************************************************************
#VIdeo_Credit : Shashi Mauli Tripathi
*****************************************************************************

#eclipse
#eclipseide
#java
#bluej
#numberSystem
#javalearn
#student
#btech
#teacher
#beginners
#programming
#reverse
#coder
#javalearn
#online
#learnjava
#tutorials
#bestjavatraining
#training
#programming
#video
#virals
#reversenumber
#youtube
#facebook


Watch video Write a program to accept a number and check and display whether it is a Niven number or not. online without registration, duration hours minute second in high quality. This video was added by user Coder Bano 05 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 628 once and liked it 15 people.