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
Loading
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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Jun 22, 2021, 11:23 AM
SuriPosted Jun 22, 2021, 11:26 AM
SuriPosted Jun 22, 2021, 10:51 AM
Rajanikant HawaldarPosted Jun 22, 2021, 10:50 AM