Computer Science, asked by yashica2613, 1 year ago

Write an algorithm to find the root or quadratic equation

Answers

Answered by Cheemaking
2
Step Form Algorithm:

Start.

Declare the required variables.

Indicate the user to enter the coefficients of the quadratic equation by displaying suitable sentences using printf() function.

Wait using the scanf() function for the user to enter the input.

Calculate the roots of quadratic equationusing the proper formulae.

I hope help you
Answered by rohan2132
1

ALGORITHM: 1) Start 2) Declare the required variables 3) Read the coefficients a,b,c of quadratic equation 4) Calculate d=b2-4ac 5) IF d<0,display roots are imaginary & goto step 6 else calculate x=(-b+ sqrt(d))/2a y=(-b-sqrt(d))/2a 6) Display real roots x,y 7) Stop.

Similar questions