For this Question: Write a program to check whether a number is even or odd using switch case.First Line of the input contains the number n.

<b>Constraints</b>
1 <= n <= 1e9If the number is even print "Even" otherwise "Odd"Sample Input : 
23

Sample Output : 
Odd

Sample Input : 
24

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

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

    switch(num % 2)
    {
        case 0: 
            printf("Even");
            break;

        /* Else if n%2 == 1 */
        case 1: 
            printf("Odd");
            break;
    }

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