Revised minmax to read from cin
Added minmaxf to parse float