while (i) {
printf("Digit (%d) = %d", d, ((num2/(pow(10,(i-1))))%10));
d++;
i--;
}
i and d are int values declared earlier on in the function. The error I'm getting is "Operands of '%' have incompatible types 'double' and 'int'."
I keep getting this error message even after fiddling with the values.