My ans is 1 every time i run the code

whenever I run my code it always returning 1 as an answer I checked my code but didn’t found any mistake can anyone help
code- code- https://ide.codingblocks.com/s/232169