From b181bbdf13fb1799632d76ea2b413876594c1814 Mon Sep 17 00:00:00 2001 From: Alexandre P Francisco Date: Tue, 8 Mar 2016 09:22:11 +0000 Subject: [PATCH] Fix error in atletas.c. --- aula03/ex7.c | 4 ++-- aula04/atletas.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } } -- 2.30.2