Find you can drive or not in c

 #include<stdio.h>

int main()

{

   int age;

   

   printf("Enter the age\n");

   scanf("%d", &age);

   

   if(age <= 90 && age >= 18)

   printf("You can drive\n");

   

   else

   printf("You can't drive\n");

   

return 0;

}

Comments

Popular posts from this blog

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c