Thursday, July 25, 2019

c program to your age is eligable for vote or not.

c program to your age is eligable for vote or not.

check your age is eligabe for vote or note.



//check your age is aligable for vote.

#include<stdio.h>
#include<conio.h>

void main()
{
int age;
clrscr();
printf("Enter Your Age :-");
scanf("%d",&age);

if(age>=18)
{
printf("Your Age is Eligible for vote..");
}
else
{
printf("!lSorry You are not eligible for vote");
}
getch();
}


Output:



EmoticonEmoticon