Write a main program allows the user to enter three coefficients of a quadratic equation. The main program passes the coefficients to the function. Write the function that finds and prints roots of the quadratic equation.
Assignment doesn't say the function has to return anything to main.
It says the function should "find and print the roots".
PLEASE USE CODE TAGS (the <> formatting button) when posting code. It makes it easier to read your code and also makes it easier to respond to your post.
Also, please post complete functions. The code you posted is not compilable.