-
Notifications
You must be signed in to change notification settings - Fork 0
/
grupos3incFor.c
48 lines (46 loc) · 1005 Bytes
/
grupos3incFor.c
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
46
47
48
#include <stdio.h>
void main()
{
int num[100], i, j;
for(i = 0;; i++)
{
scanf("%d", &num[i]);
if(num[i] == 0)
break;
}
for(j = 0; j < i; j++)
{
switch (num)
{
case 1:
case 2:
case 3:
case 4:
printf("Grupo A");
break;
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
printf("Grupo B");
switch (num)
{
case 9:
case 10:
printf(", Grupo C");
default:
break;
}
break;
case 11:
case 12:
printf("Grupo C");
break;
default:
break;
}
printf("\n");
}
}