-
Notifications
You must be signed in to change notification settings - Fork 1
/
12250.c
49 lines (32 loc) · 819 Bytes
/
12250.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
49
#include<stdio.h>
int main (){
char str[100];
int i=1;
while(gets(str)){
if(strcmp(str,"#")==0){
break;
}
else if(strcmp(str,"HELLO")==0){
printf("Case %d: ENGLISH\n",i++);
}
else if(strcmp(str,"HALLO")==0){
printf("Case %d: GERMAN\n",i++);
}
else if(strcmp(str,"HOLA")==0){
printf("Case %d: SPANISH\n",i++);
}
else if(strcmp(str,"BONJOUR")==0){
printf("Case %d: FRENCH\n",i++);
}
else if(strcmp(str,"CIAO")==0){
printf("Case %d: ITALIAN\n",i++);
}
else if(strcmp(str,"ZDRAVSTVUJTE")==0){
printf("Case %d: RUSSIAN\n",i++);
}
else{
printf("Case %d: UNKNOWN\n", i++);
}
}
return 0;
}