#include <iostream>
#include <cstdio>
#include <string.h>
using namespace std;
int main()
{
char ch1[]="Hajj",ch2[]="Umrah",ch3[]="*",cha[10000];
int count=1;
while(scanf("%s",cha)==1){
if(strcmp(cha,ch3)==0){
break;
}
else if(strcmp(cha,ch1)==0){
printf("Case %d: Hajj-e-Akbar\n",count);
count++;
}
else if(strcmp(cha,ch2)==0){
printf("Case %d: Hajj-e-Asghar\n",count);
count++;
}
}
return 0;
}
#include <cstdio>
#include <string.h>
using namespace std;
int main()
{
char ch1[]="Hajj",ch2[]="Umrah",ch3[]="*",cha[10000];
int count=1;
while(scanf("%s",cha)==1){
if(strcmp(cha,ch3)==0){
break;
}
else if(strcmp(cha,ch1)==0){
printf("Case %d: Hajj-e-Akbar\n",count);
count++;
}
else if(strcmp(cha,ch2)==0){
printf("Case %d: Hajj-e-Asghar\n",count);
count++;
}
}
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন