[c] Reading in double values with scanf in c