Skip to content

Instantly share code, notes, and snippets.

@jldevezas
Created July 28, 2011 21:18
Show Gist options
  • Save jldevezas/1112582 to your computer and use it in GitHub Desktop.
Save jldevezas/1112582 to your computer and use it in GitHub Desktop.
for ( int i = 0 ; i < n ; i++ ) {
for ( int j = i + 1 ; j < n ; j++ ) {
if ( i + j == v ) {
// Do something.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment