lundi 14 septembre 2020

I can't found my mistake in my simple C-loop,the printf doesnt work

Down there is my code,when i try to compile it the printf doesnt work,what do you think?Why?

#include <stdio.h>
int main(){
    float i;
    for(i=0.0f; i < 1.0f; i+=0.05f){
        if(i == 0.5f)
            printf("Die Hälfte ist erreicht\n");
    }
    return 0;
}

Aucun commentaire:

Enregistrer un commentaire