Sum of odd placed and even placed digits

I am unable to find the even and odd place of a number , can you please help to solve this problem .

hi @deepshreyamishra301_1918130c8477386b,
here’s the commented code have a look https://ide.codingblocks.com/s/659622