age
2. It is mandatory to be 18 years or more to get a “Driving License". If your
is between 12 years and 18 years, then you can get the “Learner's License"
otherwise you cannot. Draw a flowchart taking the age of a person as an
input to satisfy the given conditions.
Answers
Answered by
0
Explanation:
#include<studio.h>
void main()
{
int age;
printf ("\n enter age =");
scanf ("%d",&age);
if(age>=18)
{
printf ("\n get a Driving License.");
}
else if(age>12||age<18)
{
printf ("\n get the Learner's License. ");
}
else
{
printf ("\n not eligible to Learner's licence");
}
}
Similar questions