Find Vote Eligibility

In this, we are going to write a simple program to validate if a candidate is eligible to vote or not with the help of a C program.



#include <stdio.h>
int main()
{
    int age;
    printf("Enter your age : \n");
    scanf("%d", &age);
    if (age >= 18)
    {
        printf("You are eligible for voting!");
    }
    else
    {
        printf("Go home kiddo!");
    }
    return 0;
}
//.........Coded By ARADHANA MISHRA

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post