Skip to content

Instantly share code, notes, and snippets.

@dafyddcrosby
Created July 30, 2013 02:21
Show Gist options
  • Save dafyddcrosby/6109677 to your computer and use it in GitHub Desktop.
Save dafyddcrosby/6109677 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main();
int main(){
unsigned int i, k;
unsigned int j = 0;
for (i = 0; i < 100; i++) {
printf("%d\n", j);
k++;
j += k;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment