#include <iostream>
using namespace std;
void fun(char* s, char t[])
{
int i = 0, j = 0;
while (s[i] != '\0')
{
if (s[i] % 2 == 0) // ASCII值是偶数
{
t[j] = s[i];
j++;
}
i++;
}
t[j] = '\0';
}
int main()
{
char s[100], t[100];
cout << "\nPlease enter string S:";
cin >> s;
fun(s, t);
cout << "\nThe result is: " << t << endl;
}