Filtro.cpp

#include <iostream>
using namespace std;

void main() {

char c;
for(cin.get(c); c!='0'; cin.get(c))
cout.put(c);

}