Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created July 28, 2012 06:18
Show Gist options
  • Save rhysd/3192066 to your computer and use it in GitHub Desktop.
Save rhysd/3192066 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int i,j;
int result = 0;
for(i=1; i<=100; ++i){
for(j=1; j<=100; ++j){
if(i!=j) result += i*j;
}
}
printf("%d\n",result);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment