From 60db61a53724dac813d99d8b2a0bc91d6769589a Mon Sep 17 00:00:00 2001 From: Matthew Musoke Date: Thu, 25 Sep 2014 17:08:42 -0300 Subject: [PATCH] fixed #2 Added the mean function. --- mm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mm.c b/mm.c index ff1779f..1c9c3a5 100644 --- a/mm.c +++ b/mm.c @@ -3,6 +3,14 @@ #define debug 0 +float mean(int length, int *pt) { + int i, total=0; + for(i=0; i