Created
November 14, 2011 04:57
-
-
Save rodrigovidal/1363269 to your computer and use it in GitHub Desktop.
Somar imperativo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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