• Source
    1. #include<stdio.h>
    2. #include<string.h>
    3. int main()
    4. {
    5. int count=0;
    6. char str[1000];
    7. while(gets(str))
    8. {
    9. count++;
    10. if(strcmp(str,"*")==0)
    11. {
    12. break;
    13. }
    14. else if(strcmp(str,"Hajj")==0)
    15. {
    16. printf("Case %d: Hajj-e-Akbar\n",count);
    17. }
    18. else if(strcmp(str,"Umrah")==0)
    19. {
    20. printf("Case %d: Hajj-e-Asghar\n",count);
    21. }
    22.  
    23. }
    24. return 0;
    25. }