if i have a list of numbers , say 2345678
and want to add up the odd position digits
how can i do this ?
i tried it with nums
and using atoi to convert the type
but it seems i can't do things like
sum=atoi(nums) + atoi(nums);
can someone plz help me~~~~