Advertisement
juanjo12x

UVA_12577_Hajj_e_Akbar

May 29th, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. int main(int argc, char** argv) {
  5.     char input[10];int i=1;
  6.     while (scanf("%s",&input)){
  7.         if (strcmp(input,"*")==0) break;
  8.         if (strcmp(input,"Hajj")==0){
  9.             printf("Case %d: Hajj-e-Akbar\n",i);
  10.             i++;
  11.         }else{
  12.             printf("Case %d: Hajj-e-Asghar\n",i);
  13.             i++;
  14.         }
  15.     }
  16.     return (EXIT_SUCCESS);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement