can you please check my code. the output is not coming right.
https://ide.codingblocks.com/s/110594 - this is the url of the code.