Skip to content

Instantly share code, notes, and snippets.

@runejuhl
Created October 11, 2012 19:25
Show Gist options
  • Save runejuhl/3874887 to your computer and use it in GitHub Desktop.
Save runejuhl/3874887 to your computer and use it in GitHub Desktop.
Tal
int i, j;
for (i = 0; i < array.lenght(); i++) {
if ((j = array[i] * 2) > 10)
j = j % 10 + 1;
array[i] = j;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment