that why i was getting the errors ?
i had given the correct function name and arguments know
Found at last in c++
Hello @Chandra123,
-
The return type of your function is void.
So, how can you print? -
How can you return from the function with return type void?
-
Pass n instead of n-1 in the function.
I have corrected your code:
Hope, this would help.
Give a like if you are satisfied.