Skip to content

Instantly share code, notes, and snippets.

@hogelog
Created March 17, 2009 10:04
Show Gist options
  • Save hogelog/80442 to your computer and use it in GitHub Desktop.
Save hogelog/80442 to your computer and use it in GitHub Desktop.
class Test{
int sum_inc() {
int x, result = 0;
for (x=0;x<1000;++x) {
result += x;
}
return result;
}
int sum_dec() {
int x, result = 0;
for (x=1000;x>=0;--x) {
result += x;
}
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment