Question: Consider the equation Ax 2 + B = 0. If B/A < 0, this equation has two solutions. The solutions are: (1) X 1

Consider the equation Ax2 + B = 0.

● If B/A < 0, this equation has two solutions. 

The solutions are:

(1) X1 = Sqrt(–B/A)

(2) X2 = −Sqrt(–B/A)

● If B/A = 0, this equation has one solution which is X = 0

● If B/A > 0, this equation has no real number solutions

Write a program to have the user input any numbers for the coefficients, A and B, for this equation. If A = 0, terminate the program. Otherwise, solve the equation.

Step by Step Solution

3.21 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

By using c programming include header include header ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Prelude to Programming Questions!