NotSoEasyMath Problem

ans=https://ide.codingblocks.com/#/s/30645

what is wrong with my code both test case fails.???

You’re not incrementing i inside the while(i < len) loop

My code does not pass test case after incrementing i variable