how to eliminate time limit exceeded error
https://ide.codingblocks.com/s/51525
Is armstrong number
Hi Pratik, there are some errors in your code.
You have to divide temp by 10 in every iteration of the while loop, otherwise the while loop will never terminate.
Also, you have to add the value of cube to the sum and not the rem.
Check the constraints of the code, you’ll have to take long.
I’ve corrected your code, you can check it here - https://ide.codingblocks.com/s/51537