Armstrong number program

I have submitted my code but test case 1 and 2 are not supporting. I am not able to understand how to solve this problem and also what is my mistake.

@Shivansh2020
hello pranshul,
pls save ur code on https://ide.codingblocks.com/ and share the generated link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.