Disarium Number Program using Java (BlueJ) in Hindi

preview_player
Показать описание
Write a Program in Java to input a number and check whether it is a Disarium Number or not.
Note: A number will be called DISARIUM if sum of its digits powered with their respective position is equal to the original number.
For example 135 is a DISARIUM (Workings 11+32+53 = 135, some other DISARIUM are 89, 175, 518 etc)
Sample:
Enter a Number : 135 135 is a Disarium Number.
Enter a Number : 219 219 is not a Disarium Number.
Enter a Number : 89 89 is a Disarium Number.
Рекомендации по теме
welcome to shbcf.ru