文章
36
粉丝
0
获赞
5
访问
24.3k
#include <stdio.h>
int main(){
char s[1000],num[1000],z[1000],e[1000];
int count1=0,count2=0,count3=0;
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if((s[i]<='z'&&s[i]>='a')||(s[i]<='Z'&&s[i]>='A')) z[count1++] = s[i];
else if(s[i]<='9'&&s[i]>='0') num[count2++] = s[i];
else e[count3++] = s[i];
}
printf("%s\n%s\n%s\n",z,num,e);
return 0;
}
登录后发布评论
暂无评论,来抢沙发