]> web.ist.utl.pt Git - iaed.git/commitdiff
Fix error in atletas.c.
authorAlexandre P Francisco <aplf@tecnico.pt>
Tue, 8 Mar 2016 09:22:11 +0000 (09:22 +0000)
committerAlexandre P Francisco <aplf@tecnico.pt>
Tue, 8 Mar 2016 09:22:11 +0000 (09:22 +0000)
aula03/ex7.c
aula04/atletas.c

index f1c3377ff9e898770af196a1c07fc5d0a5d2c41f..334d37efca7c7ca6311fdb4780ec3f0f4e1a5036 100644 (file)
@@ -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;
 }
index 43fc1d5f0608ea4623d9e3b1e563f1eaa0f5482a..c0737e5532e77db686c61187d406dfef094692ce 100644 (file)
@@ -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);
   }
 }