Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a PHP program to find roots of quadratic equation #4448

Closed
Tracked by #4435
harshraj8843 opened this issue May 1, 2023 · 1 comment · Fixed by codinasion/program#7506
Closed
Tracked by #4435

Write a PHP program to find roots of quadratic equation #4448

harshraj8843 opened this issue May 1, 2023 · 1 comment · Fixed by codinasion/program#7506
Assignees
Labels
closed closed issues/PRs good first issue Good for newcomers PHP php related

Comments

@harshraj8843
Copy link
Contributor

Description

Write a PHP program to find roots of quadratic equation

Use the quadratic formula to find the roots of the quadratic equation

x = $(-b &plusmn \sqrt(b^2 - 4ac))/2a$

The input will be the coefficients of $x^2$, $x$, and the constant $c$.

Input  : 1 2 1
Output : -1 -1

Contributed by - @PavanKumarCB

How to contribute
  • Save the solution in find_roots_of_quadratic_equation.php file
  • Add find_roots_of_quadratic_equation.php file in program/find-roots-of-quadratic-equation folder
@Roybas2001
Copy link

!assign

@codinasion-bot codinasion-bot bot added the closed closed issues/PRs label May 5, 2023
@harshraj8843 harshraj8843 added good first issue Good for newcomers closed closed issues/PRs PHP php related labels May 29, 2023
@harshraj8843 harshraj8843 transferred this issue from codinasion/program May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed closed issues/PRs good first issue Good for newcomers PHP php related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants