Thursday, January 28, 2016

UVA 12577 | | Hajj-e-Akbar

#include<bits/stdc++.h>
using namespace std;
int main()
{
   char s[6];
   long long  cse=0;
   while(cin>>s){
    if(strcmp(s,"Hajj")==0)
        cout<<"Case "<<++cse<<": "<<"Hajj-e-Akbar"<<endl;
    else if(strcmp(s,"Umrah")==0)
        cout<<"Case "<<++cse<<": "<<"Hajj-e-Asghar"<<endl;
    else
        break;

   }
}

No comments:

Post a Comment