Skip to content

Instantly share code, notes, and snippets.

@brunopedroso
Created September 7, 2009 19:02
Show Gist options
  • Save brunopedroso/182517 to your computer and use it in GitHub Desktop.
Save brunopedroso/182517 to your computer and use it in GitHub Desktop.
int calcularResultado(char *linha) {
int i, j;
int resultado = 0;
int arrayJogadas[21];
j = getJogadas(linha,arrayJogadas);
for (i = 0; i < j; i++) {
resultado += arrayJogadas[i];
}
return resultado;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment