I am trying to create a program using the console application to solve quadratic equations but the math.sqrt syntax is producing the wrong answers

what is wrong?

Show an example please.

Sorry guys I fixed it. Math.sqrt wasnt the problem, the brackets were.
Thanks anyways.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.