Hello friends!!!!!
Program to check whether a person is eligible to vote or not
C LANGUAGE
9/9/20241 min read
#include <stdio.h>
int main () {
int a;
printf("Enter your age : ");
scanf("%d", &a);
if(a>=18) {
printf("You are eligible to vote");
}
else {
printf("You are not eligible to vote");
}
return 0;
}
Output :
Enter your age : 21
You are eligible to vote
=== Code Execution Successful ===