Vivekananda College of Engineering and Technology

Department of Electronics & Communication Engineering

Back to Experiments
Experiment 2
C Programming Lab

Aim

To find the roots of a quadratic equation.

Algorithm

1. Read coefficients a, b, c.
2. Calculate discriminant d = b² − 4ac.
3. Find roots based on discriminant value.
4. Display the roots.

Use or Edit the given C template

Output

Output will appear here after compilation.
C Programming Virtual Lab - Experiment 2