C Program 9
#include<stdio.h>
int main()
{
int age , temp=0;
while(1)
{
printf ("enter your age here \n");
scanf("%d",&age);
if(age>=18 && age<100)
{
printf("Congrutiation you are eligble \n");
}
else if (age>=100)
{
printf("you are eligble but we syuggest take rest \n");
}
else if (age<18)
{
temp=18-age;
printf("you are not eligble or you are not mature \n");
printf("wait %d years for vote \n");
}
}
getch();
}
C+ Plus Program
Reviewed by Tejpal singh
on
March 14, 2022
Rating:

No comments: