Search⌘ K
AI Features

Exercise: Compute the roots

Explore how to write a C program that calculates the two roots of a quadratic equation given specific coefficients. Understand the use of math functions like sqrt and practice formatting output to five decimal places in C.

We'll cover the following...
...

Write a program that computes the (two) roots of a quadratic equation:

...