Armstrong Number Problem Statement
You are provided an integer 'NUM'. Determine if 'NUM' is an Armstrong number.
Explanation:
An integer 'NUM' with 'k' digits is an Armstrong number if the sum of its digits, each raised to the power of 'k', equals the number itself.
Input:
T, followed by T values of NUM
Output:
For each NUM, output 'YES' if it's an Armstrong number, 'NO' otherwise.
Example:
Input:
2
153
123
Output:
YES
NO
Explanation: '153' is an Armstrong number, whereas '123' is not.
Constraints:
1 <= T <= 100
1 <= NUM <= 10^9
- Time Limit: 1 sec
Note:
Just implement the function as described; printing is handled for you.

AnswerBot
4mo
An Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits.
Iterate through each digit of the number and calculate the sum of each digit rais...read more
Help your peers!
Add answer anonymously...
Accenture Associate Software Engineer interview questions & answers
An Associate Software Engineer was asked 2w agoQ. Which technology stack have you worked with?
An Associate Software Engineer was asked 3w agoQ. What is NLP?
An Associate Software Engineer was asked 4w agoQ. Explain the concepts of OOPs.
Popular interview questions of Associate Software Engineer
An Associate Software Engineer was asked 2w agoQ1. Which technology stack have you worked with?
An Associate Software Engineer was asked 3w agoQ2. What is NLP?
An Associate Software Engineer was asked 4w agoQ3. Explain the concepts of OOPs.
Top HR questions asked in Accenture Associate Software Engineer
An Associate Software Engineer was asked 2w agoQ1. Have you ever encountered a project issue with a teammate who unexpectedly left,...read more
An Associate Software Engineer was asked 2w agoQ2. Can you share something about yourself that is not included in your resume?
An Associate Software Engineer was asked 1mo agoQ3. What challenges did you face as a team leader during the project?
>
Accenture Associate Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

