write a programme to input a number check if it is a weak arm number or not ising for loop . print a appropriate message ...
please tell fast. ......
Answers
Answered by
0
Answer:
Write a Java program to check whether a given number is a Disarium number or unhappy number.
A Disarium number is a number defined by the following process:
Sum of its digits powered with their respective position is equal to the original number.
For example 175 is a Disarium number:
As 11+32+53 = 135
Some other DISARIUM are 89, 175, 518 etc.
A number will be called Disarium if the sum of its digits powered with their respective position is equal with the number itself. Sample Input: 135.
Test Data
Input a number : 25
Explanation:mark it as brainliest
Answered by
2
Answer:
example 135
Explanation:
1¹+3²+5³= 135
Similar questions
Art,
3 months ago
English,
3 months ago
Business Studies,
3 months ago
English,
6 months ago
India Languages,
11 months ago
Biology,
11 months ago
Math,
11 months ago