Professional Documents
Culture Documents
Workshop 4: Ex3: Implement A Program To Calculate The Quadratic Equation Ax
Workshop 4: Ex3: Implement A Program To Calculate The Quadratic Equation Ax
Ex3: Implement a program to calculate the quadratic equation ax +bx+c=0. Ask the user to enter
2
three coefficients a, b, c. The program calculates and prints the solution to the screen.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
(Note: If the user enters an invalid number, the program will ask to re-enter it.)
#include <stdio.h>
#include <stdlib.h>