#include <stdio.h>
int main() {
    int age;

    printf("Enter your age: ");
    scanf("%d", &age);

    switch (age) {
        case 18:
            printf("You are not eligible for voting.\n");
            break;
        case 20:
            printf("You are eligible for voting.\n");
            break;
        default:
            printf("Your not eligible.\n");
    }

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: