#include<stdio.h> #include<string.h> int main () { int c=1; char str[10]; while (1) { scanf("%s",&str); if (strcmp(str,"*")==0) return 0; if (!strcmp(str,"Hajj")) printf("Case %d: Hajj-e-Akbar\n",c++); else if (!strcmp(str,"Umrah")) printf("Case %d: Hajj-e-Asghar\n",c++); } return 0; }
Sunday, April 24, 2016
UVA 12577: Hajj-e-Akbar -solution
Unknown
Studying at Shahjalal University of Science and Technology, Sylhet.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment