CHEWBACCA AND NUMBER 1 case wrong

question = https://hack.codingblocks.com/contests/c/452/62
solution = https://ide.codingblocks.com/#/s/21018

Read the problem statement carefully. It is mentioned that
"The decimal representation of the final number shouldn’t start with a zero. "
Hence the first digit of the number must not be flipped if it is 9.

The correct answer for input 99 will be 90.
But your code will give output 00.

1 Like