Advertisement
reyad_

Uva 12577 – Hajj-e-Akbar

Jan 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. char s[6];
  6. int no=0;
  7. while(scanf("%s",s))
  8. {
  9. if(!strcmp(s,"*"))
  10. break;
  11. else if(!strcmp(s,"Hajj"))
  12. printf("Case %d: Hajj-e-Akbar\n",++no);
  13. else
  14. printf("Case %d: Hajj-e-Asghar\n",++no);
  15. }
  16. return 0;
  17. }
  18.  
  19.  
  20. /* Inputs
  21. Hajj
  22. Umrah
  23. Hajj
  24. Umrah
  25. *
  26.  
  27.  
  28.  
  29. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement