Computer Science, asked by harshit2492, 6 months ago

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 itsgagan
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 simmi0903
2

Answer:

example 135

Explanation:

1¹+3²+5³= 135

Similar questions