Chewbacca and number

my code fails 3 test cases
can you check and tell where did i went wrong

TIA

hello @mahima

pls share ur code using cb ide

here is my code - https://ide.codingblocks.com/s/429180

try now->

still 2 test cases failed

use long long for all variables

even after making the variables long long, the code still fails 2 test cases

its working->

yes it’s working now. I forgot to change variable pw from int to long. Thanks.

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.