Posts

Showing posts with the label uva solution

Uva solution 12577 Hajj-e-Akbar

Image
#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; }