C code checking voting categeri for use age
#include<stdio.h>
int main()
{
int age;
printf("enter number:");
scanf("%d",&age);
if (age>18)
{
printf("you can give your vote\n");
}
else
{
printf("you can not give vote\n");
}
printf("thankyou");
return 0;
}
Comments
Post a Comment