Not getting Output1

Sir, i have written whole code of programme and when it time for compile it compile but not giving any output even after giving few inputs.Programming link https://ide.codingblocks.com/s/104600 please tell my mistake Sir.

@sauravbisht00 hey saurav your base case is not right your base case is running only when n==0 and n==1 means both the condition should be true but it should be if(n==0||n==1)