Skip to content

C++ program for solving quadratic and cubic equations with user input, handling real and complex roots.

Notifications You must be signed in to change notification settings

aadilsiddiquee/quadratic_and_cubic_equation_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Quadratic and Cubic Equation Solver

A C++ program that allows you to solve quadratic and cubic equations interactively. This program takes user input for coefficients and calculates real and complex roots based on the degree of the equation.

Usage

  1. Choose the degree of the equation (2 for quadratic, 3 for cubic).
  2. Enter the coefficients as prompted.
  3. The program will calculate and display the roots of the equation.

Features

  • Handles quadratic (degree 2) and cubic (degree 3) equations.
  • Supports real and complex roots.
  • Detects invalid inputs.

About

C++ program for solving quadratic and cubic equations with user input, handling real and complex roots.

Topics

Resources

Stars

Watchers

Forks

Languages