Its not giving the right output. Can you point out the mistake?
@akash_281 i have commented and updated the mistakes in your code look at this https://ide.codingblocks.com/s/278046
@akash_281 i have commented and updated the mistakes in your code look at this https://ide.codingblocks.com/s/278046