This is what I have so far.
# include <math.h> # include <stdio.h> # include <stdlib.h> /*Function Prototypes */ double find_solution_1(double a, double b, double c); /*Calculates 1st solution */ double find_solution_2(double, double, double); /*Calculates 2nd solution */ int main(void) { double a, b, c, s1, s2; printf("Enter the coefficient values for a, b, and c\n"); /*get input*/ scanf("%lf" , &a); scanf("%lf" , &b); scanf("%lf" , &c); s1 = find_solution_1(a, b, c); /*function calls*/ s2 = find_solution_2(a, b, c); printf("x = %.2f, x = %.2f\n" , s1, s2); /*display results*/ system("pause"); return (0); } double find_solution_1(double a, double b, double c) /*Define Function */ { double result; result = (-b + sqrt(b * b - 4 * a * c))/(2 * a); return (result); } double find_solution_2(double a, double b, double c) /*Define Function */ { double result; result = (-b - sqrt(b * b - 4 * a * c))/(2 * a); return (result); }Any help would be greatly appreciated.