Still 2 testcases are failing!
Whats wrong with my approach?
hi @Prashant-Kumar-1947183015386369 firstly 0 is also considered an armstrong number and your program will return false for it. Secondly, you can try changing the datatype to long long int.
Still first two test cases fail.
hi @Prashant-Kumar-1947183015386369 your logic seems to be correct. Please submit once after removing the cout << endl line from the main function.
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.