Created
September 25, 2013 01:50
-
-
Save sebmaldo/6694154 to your computer and use it in GitHub Desktop.
Clase matemática estática para ejemplo de test unitario sobre método privado estático
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
public static class Matematica | |
{ | |
private static int SumaNumeros(int x, int y) | |
{ | |
int acumulador = 0; | |
for (int i = x; i <= y; i++) | |
{ | |
acumulador += i; | |
} | |
return acumulador; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment