Licence

// Check if person is eligible or not for licence
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char n;
clrscr();
printf("\n Enter your age:-");
scanf("%d",&a);
flushall();
printf("\n Enter your nationality:-");
scanf("%c",&n);
if(a>=18&&n=='i'||n=='I')
{
printf("\n You get licence");
}
else
{
printf("\n You are not eligible");
}
}

No comments:

Post a Comment