#include <stdio.h>

int main() 
{
    int age;
    scanf ("%d",&age);
    if (age>= 18)
    {
        printf("eligible for voting");
    }
    else 
    {
        printf("not eligible for voting");
    }
    return 0;
}

Embed on website

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