UVA 12577 - Hajj-e-Akbar

UVA Sep 01, 2020

Problem PDF

Solution:

#include
#include
int main()
{
    char s[6];
    int no=0;
    while(scanf("%s",s))
    {
        if(!strcmp(s,"*"))
        break;
        else if(!strcmp(s,"Hajj"))
        printf("Case %d: Hajj-e-Akbar\n",++no);
        else
        printf("Case %d: Hajj-e-Asghar\n",++no);
    }
    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/12577/12577.cpp

Tags

Shipu Ahamed

CSPO® | Partly Product, Project Manager and Partly Software Engineer.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.