Skip to content

Instantly share code, notes, and snippets.

@lostdj
Created October 16, 2012 05:19
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 lostdj/3897340 to your computer and use it in GitHub Desktop.
Save lostdj/3897340 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char **argv) {
volatile int k=10000;
volatile int s;
volatile int i;
volatile int j;
for (s=0,i=0;i<k;i++) {
for (j=0;j<k;j++)
s+=i*j;
}
printf("%d\n",s);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment