#include "stdio.h" #include "string.h" #include "stdlib.h" void f(){ char dinary[5] ={'a','e','i','o','u'}; char s[100]; gets(s); int len; len =(int) strlen(s); for(int i = 0;i<len;i++){ for(int j = 0;j<5;j++){ if(s[i]==dinary[j]){ printf("%c",s[i]); } } } } int main(){ f(); return 0; } 这是我的解法
plmokn001 2020-11-27 12:46:37 |
厉害