please check my code it is not working for all test cases.
ques is print series in challenge fundamentals
Https://ide.codingblocks.com/s/250534
@satyamsingla logic wrong won’t work for other cases here a simple solution
also one thing , you don’t have to check whether a number is in the constraints. i see in your code that you use if loops to check if the no is in range but thats not required as in the input test cases all will be in the range only.
dont forget to mark it resolved and hit like if cleared 
can you check this code.
i havw written for armstrong number
if ans is falso your code displaying 0 but i think it should display false. check if it works and tell
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.