Untitled

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