Skip to content

Instantly share code, notes, and snippets.

@joaogui1
Last active July 3, 2016 18:11
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 joaogui1/23a29b1fe8d1bdc74f98b85f60b858c4 to your computer and use it in GitHub Desktop.
Save joaogui1/23a29b1fe8d1bdc74f98b85f60b858c4 to your computer and use it in GitHub Desktop.
cin >> n;
int i = 0;
cin >> x[0];
++i;
if(i >= n){
break;
}
cin >> x[1];
++i;
if(i >= n){
break;
}
cin >> x[2];
++i;
if(i >= n){
break;
}
...
cin >> x[n - 1];
++i;
if(i >= n){
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment