C Program to check candidate is eligible for voting or not
/*****************************************
C program to check candidate is eligible for voting or not
************************************************************/
#include<stdio.h>
#include<conio.h>
void
main()
{
int age;
printf("\t\t***Output***\n");
printf("Enter
age of candidate\n");
scanf("%d",&age);
if(age>=18)
{
printf("The
candidate is eligible for voting\n");
}
else
{
printf("The candidate
is not eligible for voting\n");
}
printf("End of program");
}
***Output***
Enter age of candidate
21
The candidate is eligible for voting
End of program
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏