发布网友 发布时间:2022-04-26 09:38
共1个回答
热心网友 时间:2022-06-26 22:03
#include <stdio.h>
#include <string.h>
int main()
{
int i,n;
char s[80];
gets(s);n=strlen(s);
for(i=0;i<n;i++)
if(s[i]=='C'||s[i]=='c')
printf("BEIJING OLYMPIC GAMES\n");
else if(s[i]=='J'||s[i]=='j')
printf("JAPAN WORLD CUP\n");
else if(s[i]=='K'||s[i]=='k')
printf("KOREA WORLD CUP\n");
else
{
putchar(s[i]);
printf("\n");
}
return 0;
}
//运行示例: