提交时间:2019-12-21 20:22:32

运行 ID: 3768

#include<stdio.h> #include<string.h> int main() { int t,i; char str[51]; scanf("%d\n",&t); while(t--) { gets(str); for(i=0;str[i]!='\0';i++) if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u'|| str[i]=='A'||str[i]=='E'||str[i]=='I'||str[i]=='O'||str[i]=='U') str[i]=toupper(str[i]); else str[i]=tolower(str[i]); puts(str); } return 0; }