First way (successful):
double newMed =0; double minMed = (newMed= median) < minMed ? newMed : minMed;
Second wa