I am getting an expression result unused error when working on the credit program. My code is as follows:
for (i = 1, i <= length, i = i+2)
{
a = num / (pow (10,(i-1))) - 10 * num / (pow(10,i)) ;
printf ("%i\n",a) ;
length is calculated as an integer earlier in the program. Can anyone tell me what's wrong here?