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;
}
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
Post a Comment