Advertisement
borsha06

Hajj-e-akbar

Oct 30th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,n;
  5.     char ch[100];
  6.     for(i=1;;i++)
  7.     {
  8.   gets(ch);
  9.         if(strcmp(ch,"*")==0)
  10.             break;
  11.          if(strcmp(ch,"Hajj")==0)
  12.             printf("Case %d: Hajj-e-Akbar\n",i);
  13.         else if(strcmp(ch,"Umrah")==0)
  14.             printf("Case %d: Hajj-e-Asghar\n",i);
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement