narssistic number in java
Answers
Answered by
1
Explanation:
A narcissistic number refers to a 3-digit decimal number which is the sum of the cubes of their digits: (e.g. 1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153). If the input parameter is a narcissistic number, the method returns true, conversely, returns false. In class Exercise3, add a main() method which invokes isNarcissisticNumber
Answered by
3
A narcissistic number refers to a 3-digit decimal number which is the sum of the cubes of their digits: (e.g. 1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153). If the input parameter is a narcissistic number, the method returns true, conversely, returns false. In class Exercise3, add a main() method which invokes isNarcissisticNumber.
i hope it will help u frnd.....☺️✅✔️
Similar questions