Advertisement
Debashish_Saha

uva 12250

Jul 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4.     string s;
  5.     int ct=0;
  6.     while(1) {
  7.         cin>>s;
  8.         ct++;
  9.         if(s=="HELLO") printf("Case %d: ENGLISH\n",ct);
  10.         else if(s=="HOLA") printf("Case %d: SPANISH\n",ct);
  11.         else if(s=="HALLO") printf("Case %d: GERMAN\n",ct);
  12.         else if(s=="BONJOUR") printf("Case %d: FRENCH\n");
  13.         else if(s=="CIAO") printf("Case %d: ITALIAN\n",ct);
  14.         else if(s=="ZDRAVSTVUJTE") printf("Case %d: RUSSIAN\n",ct);
  15.         else if(s=="#") break;
  16.         else printf("Case %d: UNKNOWN\n",ct);
  17.     }
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement