C Program to Check Voting Eligibility

 #include<stdio.h>

void main()

{

    int age;

    printf("Enter age: ");

    scanf("%d",&age);


    if(age>=18)

    printf("Eligible to vote");

    else

    printf("Not eligible");

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices