0

I have an issue about an expression which is that (10/3-3)*3-1. These numbers have to be float. And my code is below;

int main(){

    float a = 10;
    float b = 3;
    float c = 1;
    float result = (a/b-b)*b-c;
    printf("The result:%f\n", result);

}

But, my result is also :

Result = -0.00000

Why does happen like that ? How can I fix this issue ?

vcb0127
  • 11
  • 1

0 Answers0