... HAVE U TRIED .... AT LEAST 3 TIMES ... OK U CAN SEE THIS ...

Tuesday, December 24, 2013

UVA-12250 :: Language Detection

#include <iostream>
#include <cstring>
#include <bits/stdc++.h>
using namespace std ;
int main ()
{
    string a ;
    int t=0 ;
    while (cin>>a && a!="#")
    {
        t++ ;
        if (a=="HELLO") printf ("Case %d: ENGLISH\n",t) ;
        else if (a=="HOLA") printf ("Case %d: SPANISH\n",t) ;
        else if (a=="HALLO") printf ("Case %d: GERMAN\n",t) ;
        else if (a=="BONJOUR") printf ("Case %d: FRENCH\n",t) ;
        else if (a=="CIAO") printf ("Case %d: ITALIAN\n",t) ;
        else if (a=="ZDRAVSTVUJTE") printf ("Case %d: RUSSIAN\n",t) ;
        else  printf ("Case %d: UNKNOWN\n",t) ;

    }
    return 0 ;
}