Uva solution 12577 Hajj-e-Akbar

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string ch;
    for(int i=1; i>0; i++)
    {
        //cin.ignore();
        getline(cin,ch);
        if(ch=="Hajj")
        {
            printf("Case %d: Hajj-e-Akbar\n",i);
        }
        else if(ch=="Umrah")
        {
            printf("Case %d: Hajj-e-Asghar\n",i);
        }
        else
        {
            break;
        }

    }
    return 0;
}

Comments

Popular posts from this blog

Codeforces Solution 230B T-primes

Uri Solution 2747 Output 1