ChewbaccaAndNumber

I took care of all the possibilities including the large size of the number and leading zeroes in the answer but I am still getting a case wrong. Can anyone please help?
here’s my code: https://ide.codingblocks.com/s/73652

check for the input 9999999999
u will know ur error

@phantom can you elaborate? I am getting the correct output for other numbers where all digits are 9. (both smaller and bigger)

no it was not working for large number because the temp variable u have is of int make it long long int
this is the error