Update main.c

updated scanf from %f to %lf.