Skip to content

Instantly share code, notes, and snippets.

@completejavascript
Created September 15, 2018 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save completejavascript/aa31d308498309e125efbbdaeeadb139 to your computer and use it in GitHub Desktop.
Save completejavascript/aa31d308498309e125efbbdaeeadb139 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
//freopen("input.txt","r",stdin);
int i = -1;
while(true)
{
cin >> i;
if(i == 42) break;
cout << i << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment