-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial11@2.c
More file actions
45 lines (33 loc) · 785 Bytes
/
Tutorial11@2.c
File metadata and controls
45 lines (33 loc) · 785 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
36
37
38
39
40
41
42
43
44
45
#include <stdio.h>
int main()
{
int age , marks;
printf("Enter your age \n");
scanf ("%d" , &age);
printf ("Enter your marks \n");
scanf ("%d" , &marks);
switch (age)
{
case 3:
printf ("The age is 3\n");
switch (marks)
{
case 45:
printf (" Your marks are 45\n");
break;
default:
printf ("Your marks are not 45 \n");
break;
}
break;
case 13:
printf ("The age is 13\n");
// break;
case 23:
printf ("The age is 23\n");
// break;
default:
printf ("The age is 3,13 or 23\n");
}
return 0;
}