From c14b88401432e42d606fd100016f798141761951 Mon Sep 17 00:00:00 2001 From: Kashif Date: Wed, 1 Oct 2014 21:44:52 -0300 Subject: [PATCH] Fixes #3. Created a median function --- mm.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mm.c b/mm.c index f6a16e5..a42b1e0 100644 --- a/mm.c +++ b/mm.c @@ -14,12 +14,20 @@ int numcmp (const void *a, const void *b) { float mean (int* values, int length) { //float function to calculate upto two decimal places float sum = 0; - for (int i=0; i