Question: Write a script that takes 3 number a , b , c as input from the user and solve the quadratic equation ax 2 +

Write a script that takes 3 number a, b, c as input from the user and solve the quadratic equation ax2+ bx + c =0. Results and are calculated using the quadratic formula. Please remember to check the value of the discriminant b2-4ac is positive (if negative results are complex/not real numbers). If the discriminant is negative, ask back the values to the user.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!