Skip to content

Instantly share code, notes, and snippets.

@rodrigovidal
Created November 14, 2011 04:57
Show Gist options
  • Save rodrigovidal/1363269 to your computer and use it in GitHub Desktop.
Save rodrigovidal/1363269 to your computer and use it in GitHub Desktop.
Somar imperativo
private int SumNumbers(int from, int to)
{
int res = 0;
for (int i = from; i <= to; i++)
res = res + 1;
return res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment