An Armstrong number is a number such that the sum of the nth power of its digits is equal to the number itself, where n is the number of digits in the number (taken here to mean positive integer).
abcd = a^n+b^n+c^n+d^n
Given an integer number N, we have to check whether it is an Armstrong number or not.
Example:
Input:
N = 153
Output:
153 is an Armstrong Number
Input:
N = 234
Output:
234 is not an Armstrong Number
Program to check Armstrong number in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer