Hello! Could You please help to solve this? My question is how to reverse a number in decimal notation using recursive function.

1234 => 4321

2 => 2

20 => 0

20000 => 2 (yes!)

0 => 0

The maximum length of test input is 5 numbers. No need to check for negative inputs or too large numbers. It should be used the division with 10, sprintf() and atoi() functions.

Thanks for your help!