Write a C program to read the age of a candidate and determine whether he /she is eligible for casting his/her own vote?

 Write a C program to read the age of a candidate and determine whether he /she is eligible for casting his/her own vote?

#include<stdio.h> 
void main() 
{ int age; 
printf(“Enter age\n”); 
scanf(“%d”,&age); 
if(age>=18) 
 printf(“Eligible\n”); 
else 
 printf(“Not Eligible\n”); 
}

Comments