will it work for input zero?
For input integer 0
No…for just 0…it will not enter the recursion.
For this…make a special case in main that it number is 0 then simply print zero. In other cases…enter the recursive function
will it work for input zero?
No…for just 0…it will not enter the recursion.
For this…make a special case in main that it number is 0 then simply print zero. In other cases…enter the recursive function