For this Question: Write a program print total number of days in a month using switch case.First line of the input contains Month Number

<b>Constraints</b>
1 <= Month <= 12Print total number of days in a month (in general).Sample Input :
3

Sample Output : 
31, I have written this Solution Code: #include <stdio.h>

int main()
{
    int month;
    scanf("%d", &month);

    switch(month)
    {
        case 1: 
            printf("31");
            break;
        case 2: 
            printf("28");
            break;
        case 3: 
            printf("31");
            break;
        case 4: 
            printf("30");
            break;
        case 5: 
            printf("31");
            break;
        case 6: 
            printf("30");
            break;
        case 7: 
            printf("31");
            break;
        case 8: 
            printf("31");
            break;
        case 9: 
            printf("30");
            break;
        case 10: 
            printf("31");
            break;
        case 11: 
            printf("30");
            break;
        case 12: 
            printf("31");
            break;
    }

    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?