Not able to find problem in code

please tell the problem in code. the output is coming to be 0. https://ide.codingblocks.com/s/264267