Hi i'm getting this error when i compile this code:
what is wrong with num being used for divisible by 10?Code:#include <math.h> #include <stdio.h> int main(void) { float num; int total; num = pow(2,1000) total=0 while (num != 0) { total=total+num%10 num=num/10 } printf("%d", total); }



LinkBack URL
About LinkBacks



