Sunday, April 24, 2016

UVA 12577: Hajj-e-Akbar -solution

Unknown
#include<stdio.h>
#include<string.h>
int main ()
{
    int c=1;
    char str[10];
    while (1)
    {
        scanf("%s",&str);
        if (strcmp(str,"*")==0)
            return 0;
        if (!strcmp(str,"Hajj"))
            printf("Case %d: Hajj-e-Akbar\n",c++);
        else if (!strcmp(str,"Umrah"))
            printf("Case %d: Hajj-e-Asghar\n",c++);
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,