Boolean true or false

I was solving a question on armstrong number , in which if a number is an armstong number then we should get a boolean output as “true” and I don’t know how to use boolean to get true … the boolean which I am applying is giving me output as 1

Hi @dhirenkinha
Bool function return 0 or 1 only. In the main function you have to use if else contidion to print yes or no. Take a new variable and equate it to bool function call and then if that variable comes out to be 1 then print true else print false.

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.