diff --git a/mm b/mm index 1f17e85..e7974b5 100755 Binary files a/mm and b/mm differ diff --git a/mm.c b/mm.c index 6d1d563..3cd9934 100644 --- a/mm.c +++ b/mm.c @@ -60,14 +60,13 @@ int main(int argc, char *argv[]) { exit(1); // The child process } else if (rc == 0) { - median(length, pt); + fprintf(stdout, "\nThe median is: %f", median(length, pt));; // The parent process } else { mean(length, pt); } fprintf(stdout, "\nThe mean is: %f", mean(length, pt)); - fprintf(stdout, "\nThe median is: %f", median(length, pt)); fprintf(stdout, "\n%s: FIN. \n", argv[0]); return 0;