Skip to content

Commit

Permalink
Add mean() function and Fixes smuos#2
Browse files Browse the repository at this point in the history
  • Loading branch information
yy90axf2010 committed Sep 27, 2014
1 parent b1314a3 commit becc46b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ int main(int argc, char *argv[]) {
for (i = 0; i < length; i++) {
pt[i] = (int) strtol(argv[i+1], NULL, 10);
}


// find the mean value.
int meanvalue;
meanvalue = mean(length,pt);
fprintf(stdout, "The mean value is: %d\n",meanvalue);
Expand Down

0 comments on commit becc46b

Please sign in to comment.