var a[4] = {1, 4, 3, 5}; printf("n%f", Median(a, 4)); printf("n%f", Percentile(a, 4, 50)); # output 4.500000 4.500000