Skip to content

Instantly share code, notes, and snippets.

@lazyakshay
Created July 26, 2017 14:15
Show Gist options
  • Save lazyakshay/e8137a3f97a80e332734d4a1e2c7dc16 to your computer and use it in GitHub Desktop.
Save lazyakshay/e8137a3f97a80e332734d4a1e2c7dc16 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
while(n!=42)
{
printf("%d\n",n);
scanf("%d",&n);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment