Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
331 B
0
Indexable
Never
#include <iostream> 
using namespace std;
int main()
{
	string a;
	int b = 0;
	cin >> a;
	for (int i = 0; i < a.length(); i++)
	{
		if (int(a[i]) % 2 != 0) {
			a[i] = '0';
		}
	}
	for (int i = 0; i < a.length(); i++)
	{
		if (a[i] == '0') {
			b++;
		}
	}
	for (; b < a.length();b++)
	{
		cout << a[b];
	}
}