Delhi odd even challenge,getting wrong output

i cant understand what went wrong in the sum part in the loop…

http://discuss.codingblocks.com/clicks/track?url=https%3A%2F%2Fide.codingblocks.com%2Fs%2F71068%3F_ga%3D2.53564064.949692327.1585567275-648245612.1579972046%26_gac%3D1.247321846.1584109783.Cj0KCQjw3qzzBRDnARIsAECmryrxTmyNxx81iYO2CJI8hjIWpEuVG8OwNvTI2RZbOUtbHKIyowz6FYQaAlO7EALw_wcB&post_id=15205&topic_id=6225

@snehasai01
can you explain your approach a little bit?

in a given car no,
each extracted digit,if odd will go to oddsum
if its even,it will go to evensum
finally oddsum and evensum if divisible by 4 or 3 resp…will give “yes” ,otherwise “no”

but in the code provided by you, you just check if the given number is 1 or 2, otherwise derive m and n and multiply them to provide answer, which doesnt match your logic, please check if the code provided is correct.