如果输入是ABCDEF,那么程序输出( )
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char str[1005];
int main() {
scanf("%s", str);
int len = strlen(str);
int l = 0, r = len - 1, tmp;
while(l < r) {
while (str[l] % 2 == 0 && l < r) {
swap(str[l], str[r]);
r--;
}
l++;
}
printf("%s", str);
return 0;
}
AEDCFB
AECDFB
ACEDBF
AFCDEB