Question from the Language C - Fundamentals test

Archived

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

int main()
    {    
        float price = 0;
        switch (age)
        {
            case >=9 && <15 :
                   price = 6;
            break;
            case > 15 && <25:
                   price = 9;
            break;
            case > 25 && <60:
                price = 12.70;
            break;
            default :
                price = 0;
                printf(“It's free”);
             break;
        }
            printf(“You owe %ld euros”,price);
            return 0;
    }
Author: KahinaStatus: Archived(New question!)Question not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!