From: Alexandre P Francisco Date: Tue, 8 Mar 2016 09:22:11 +0000 (+0000) Subject: Fix error in atletas.c. X-Git-Url: http://web.ist.utl.pt/aplf/git/?a=commitdiff_plain;h=b181bbdf13fb1799632d76ea2b413876594c1814;p=iaed.git Fix error in atletas.c. --- diff --git a/aula03/ex7.c b/aula03/ex7.c index f1c3377..334d37e 100644 --- a/aula03/ex7.c +++ b/aula03/ex7.c @@ -12,9 +12,9 @@ int main() { for (; i < j && s[i] == s[j]; i++, j--); if (i < j) - printf("Não palíndromo.\n"); + printf("Nao palindromo.\n"); else - printf("Palíndromo!\n"); + printf("Palindromo!\n"); return 0; } diff --git a/aula04/atletas.c b/aula04/atletas.c index 43fc1d5..c0737e5 100644 --- a/aula04/atletas.c +++ b/aula04/atletas.c @@ -44,7 +44,7 @@ void escreveMediaColunas(float tempos[][DIM2], int atletas, int sessoes) { for (j = 0; j < sessoes; j++) { for (i = 0, total = 0.0; i < atletas; i++) total += tempos[i][j]; - printf("Média da sessão %d: %f\n", j, total/sessoes); + printf("Média da sessão %d: %f\n", j, total/atletas); } }