My assignment is to fix the code. I have my edited code below and the original code below that. I figure I still have a few errors in here. My error checking doesnt seem to w
You got the floating point parsing all wrong and shouldn't be doing it yourself. There's an easier way:
double get_number(double num) { double value = 0.0; printf("Please input number %lf: ", num); scanf("%lf", &value); return(value); }