Loading Company...
This is a verified interview question from Ceat. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Check if a number is an Armstrong number" covers key patterns like Other.
"### Problem Write a program to check if a given integer is an Armstrong number or not. An Armstrong number is an n-digit number that is equal to the sum of its own digits raised to the power of n. ### Input A positive integer n. ### Output Print "Armstrong" if the input integer is an Armstrong number, otherwise print "Not Armstrong". ### Sample Input: 153 ### Sample Output: Armstrong"
Join thousands of developers practicing for Ceat.