suppose if the user gives the inputs as 0 , then it should print zero but in that case it will return nothing. So how should I take care of this contraints?
2048 recursion problems
Hey @Vikaspal you can either check the user input if it 0 print zero else pass it to the function or you could check before your function returns anything if it is 0 to print zero and then return. To better understand this please try to code it and if you face any problem in that and ask for the same.
If your doubt is cleared, please mark the doubt as resolved.