Question: in C please! 4. Write a function that prints out the solution of a linear equation ax + b = 0 Parameters a and b
4. Write a function that prints out the solution of a linear equation ax + b = 0 Parameters a and b are parameters (of type double) of the function. The output should be in a form like this one: The solution is x = 235.17. Please keep in mind that depending on the actual parameters a and b, the equation might have no solution, or infinitely many solutions. You have to provide adequate output for any possible set of the parameters supplied to the function. The function does not return a value, but prints out the solution, instead. This is the function's declaration: void SolveLinearEquation (double a, double b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
