#include<stdio.h>
#include<stdlib.h> Void main() { Int a;
Printf("Enter your age : ");
Scanf("%d",&a);
if(a>=18)
{ Printf(" you are eligible to voting "); } else { Printf(" you are not eligible to voting"); } } |
Enter your age : 18 You are capable to voting