Question from the Language C - Fundamentals test

What age will the following code return "It's free"?

Hard

For what age will the following code return "It's free"?

int main()
    {    
        int age;
        float price = 0;
        switch (age>9)
        {
            case 0 :
                   price = 0;
                   printf("It's free");
            break;
            default :
            if( age >= 9 && age <=25){
                   price = 9;
            } else {
                  price = 12.70;
            }
        }
   
            printf("You owe %f euros",price);
            return 0;
    }
Author: Nick LAM YEE MANStatus: Published(Update)Question passed 17 times
Edit
0
Community Evaluations
developer avatar
Nick LAM YEE MAN
23/10/2023
Un peu tricky comme question