• Source
    1. #include<stdio.h>
    2. #include<string.h>
    3. int main()
    4. {
    5. long long int count=0;
    6. char string[15];
    7. while(gets(string))
    8. {
    9. count++;
    10. if(strcmp(string,"#")==0)
    11. {
    12. break;
    13. }
    14. else if(strcmp(string,"HELLO")==0)
    15. {
    16. printf("Case %lld: ENGLISH\n",count);
    17. }
    18. else if(strcmp(string,"HOLA")==0)
    19. {
    20. printf("Case %lld: SPANISH\n",count);
    21. }
    22. else if(strcmp(string,"HALLO")==0)
    23. {
    24. printf("Case %lld: GERMAN\n",count);
    25. }
    26. else if(strcmp(string,"BONJOUR")==0)
    27. {
    28. printf("Case %lld: FRENCH\n",count);
    29. }
    30. else if(strcmp(string,"CIAO")==0)
    31. {
    32. printf("Case %lld: ITALIAN\n",count);
    33. }
    34. else if(strcmp(string,"ZDRAVSTVUJTE")==0)
    35. {
    36. printf("Case %lld: RUSSIAN\n",count);
    37. }
    38. else
    39. {
    40. printf("Case %lld: UNKNOWN\n",count);
    41. }
    42. }
    43. return 0;
    44. }