Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main(int argc, char** argv) {
- char input[10];int i=1;
- while (scanf("%s",&input)){
- if (strcmp(input,"*")==0) break;
- if (strcmp(input,"Hajj")==0){
- printf("Case %d: Hajj-e-Akbar\n",i);
- i++;
- }else{
- printf("Case %d: Hajj-e-Asghar\n",i);
- i++;
- }
- }
- return (EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement