Chewbacca and Numbers

First testcase is failing. Please help with the code.

@Anaghajain input 899 answer 100 your ans 800 check it
dont forget to hit like and mark resolved if cleared otherwise ask :smiley:

1 Like

I m not able to figure out what the problem is in my code. can you please help me with it.

@Anaghajain your are not rounding off the first digit if first digit is 9 then only you dont have to round off otherwise do it

1 Like

Thank You! I could solve it now! :smile:

@Anaghajain you are welcome