https://ide.codingblocks.com/s/56140 i am getting the 0 as output …why?? how can i correct my code…
You haven’t input n in any of the testcase .