Simple Program

#include<stdio.h>
#include<conio.h>
void main()
{
int age;
char name[12];
printf("enter your name:");
gets (name);
printf("enter the candidate age:");
scanf("%d", &age);
if(age>=18)
printf("%s is eligible for vote",name);
}

No comments:

Related Posts with Thumbnails