Quadratic equation in C | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Quadratic equation in C

How can I write a program that will solve quadratic equation using quadratic equation formula in C

29th Feb 2020, 1:21 AM
Toheeb
Toheeb - avatar
1 Answer
+ 4
For any quadratic equation of type ax²+bx+c=0 It's roots are given by:- x=((-b)+(√b²-4ac))/(2a) x=((-b)-(√b²-4ac))/(2a) This would be enough for you to solve on your own.
29th Feb 2020, 1:25 AM
Arsenic
Arsenic - avatar