Calculate mean of n numbers