4
Answers

why is float here behaving as an int data type

Suri

Suri

3y
398
1

int inSequence(int A, int B, int C){
     
     float f=(B-A+C)/C;
     int i=(B-A+C)/C;
     if(i-f<0) return 0; return 1;
    }     why is float here behaving as an int data type

Answers (4)