Code:
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; while(a!=42){ cout<<a<<endl; cin>>a; } return 0; }