dimanche 19 septembre 2021

Comparing float values in if condition is not working in C

int main() {
// Write C code here
float x = 3.14;
if(x==3.14){
    printf("true");
}

return 0;

}

I am unable to execute this part of the if conditon.

Aucun commentaire:

Enregistrer un commentaire