Write a program to check if a number is Armstrong or not.
MediumProblem Statement
Write a program to check if a number is Armstrong or not.
Sample Input
int n = 153;
Sample Output
153 is an Armstrong number.
Limits
Time: 2s · Memory: 256 MB
Write a program to check if a number is Armstrong or not.
int n = 153;
153 is an Armstrong number.
Time: 2s · Memory: 256 MB