Question from the Language C - Fundamentals test

Write a C program that prints "It is a reasonable price" if the price is less than 99.9 and "It's too expensive" otherwise.

Hard

Que renvoie le code suivant ?

int main() 
{    
    double prix = 81.60;
    switch (prix < 99.9) {
        case 1 :
            printf("C’est un prix raisonnable\n");
        default :
            printf("C’est trop cher!\n");
    }
    return 0;
}
Author: KahinaStatus: Published(Update)Question passed 80 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!