Write an algorithm to find the root or quadratic equation
Answers
Answered by
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
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
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
Computer Science,
7 months ago
Math,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago
Psychology,
1 year ago
Math,
1 year ago
Math,
1 year ago