EBK C   PROGRAMMING:
EBK C PROGRAMMING:
8th Edition
ISBN: 9780357156025
Author: Malik
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 1, Problem 21SA

Explanation of Solution

Algorithm:

  1. Get the value of a

  2. Get the value of b

  3. Get the value of c

  4. Calculate determinant using the following formula:

       determinant = square root of (b * b - 4.00 * a * c)

  5. Find the roots using the following formula:

       If (determinant is more than 0)

        realRoot1 = (- b + determinant) / (2.00 * a)

        realRoot2 = (- b - determinant) / (2...

Blurred answer
Students have asked these similar questions
Most appropriate value of x
Ans plz
Solve part (d,e,f)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr