Skip to content

Instantly share code, notes, and snippets.

@chamons
Created April 18, 2015 19:39
Show Gist options
  • Save chamons/470e69c6dbfa78f3249c to your computer and use it in GitHub Desktop.
Save chamons/470e69c6dbfa78f3249c to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main ()
{
int t = 0;
int i = 10000;
while (i > 0) {
t +=i;
i--;
}
printf ("%d\n", t);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment