-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP5.c
More file actions
27 lines (26 loc) · 625 Bytes
/
Copy pathP5.c
File metadata and controls
27 lines (26 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
Author :- Rajeshwari
purpose :- solving problem
Date :-06/10/21 wednesday .
Date of modification :- 19/12/21 , Sunday .
Problem statement
write a program to accept age of a person and print whether he is eligible for driving licence or not.
a person is eligible if age is greater than 17(<=18)
*/
#include <stdio.h>
int main()
{
/* by multiple if */
int age;
printf("Enter your age");
scanf("%d",&age);
if(age>=18)
{
printf("you are eligible to apply");
}
if (age<=17)
{
printf("you are not eligible to apply");
}
return 0;
}