some typos there on the last two in main.
other then that, the code looks fine, i think you might want to switch the else though, and put the cout before the recursion.
Hi daeiros, could you please explain as to why he has to remove quotes?
If I am not wrong he is using that expression to show the output for the given function call.
yeah i realized that... that why i edited. uhh the only error i get is the fact that in order to cout your function it needs to return something, because currently its a void type.
removing the quotation mark had nothing to do with your code.
@daeiros: Please avoid editing your post especially after someone has commented on your post. If you want to edit it, then write in your post that you have edited it.
@jayt: The problem that I see with your code is that you are writing