-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathif.c
More file actions
35 lines (19 loc) · 669 Bytes
/
if.c
File metadata and controls
35 lines (19 loc) · 669 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
28
29
30
31
32
33
34
35
#include<stdio.h>
int main() {
int age, marks;
printf("Enter your age:");
scanf("%d", &age);
printf("Enter your marks:");
scanf("%d", &marks);
if (age<18)
{
printf("Your age is less than 18\n");
if (marks<45)
printf("FAIL!!\n");
else
printf("PASS!!\n");
}
else
printf("you are above 18\nPasss!!");
return 0;
}