Only 2 test case passed

https://ide.codingblocks.com/#/s/18163
https://hack.codingblocks.com/contests/c/456/160
:point_up_2:
SUM OF ODD PLACED AND EVEN PLACED DIGITS

hey Shivam ,actually the problem is test case are designed in such a way that is length of num is odd then we count index from right to left as 0 to length-1,while if length of num is even then we count index from left to right. therefore output that is to print odd sum or even sum first depends on length of num,therefore add if else also at then end of code .

:wink: for help have a look at my code–>https://ide.codingblocks.com/#/s/18214

let me know if u find it helpful.

thanks …