Create 1738.c

This commit is contained in:
Kirigaya Kazuto 2016-05-21 12:42:04 +08:00
parent 6def391a9a
commit 233427153c

16
QUSTOJ/1738.c Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
char str[256];
char ans[256];
int main()
{
scanf("%s",str);
int a=0;
int b=0;
while(str[a]!=0)
{
if((str[a]-'0')%2) ans[b++]=str[a];
++a;
}
printf("%s\n",ans);
return 0;
}