#include
int main()
{char a[200],b[200],*p,*q;
printf("请输入一个字符串:\n");
gets(a);
for(p=a,q=b;*p;p++)
if(!(*p%2))*q++=*p;
*q=*p;
printf("a串:%s\n",a);
printf("b串:%s\n",b);
return 0;
}
int main()
{
char A[64] = {0};
char B[64] = {0};
int i = 0, j = 0;
scanf("%s", A);
for(i = 0; i < strlen(A); i++)
{
if(A[i] % 2 == 0)
B[j++] = A[i];
}
printf("A=%s,\nB=%s", A, B);
return 0;
}