How do we find the two roots of a quadratic equation using c programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do we find the two roots of a quadratic equation using c programming

30th May 2019, 6:18 AM
Jesse
5 Answers
+ 6
You can use the quadratic formula to find the two roots which is : root1=(-b+(b**2-4*a*c)**0.5)/2a root2=(-b-(b**2-4*a*c)**0.5)/2a where ax^2 - bx + c is the quadratic equation. a = coefficient of x^2 b = coefficient of x c = constant term Thanks
30th May 2019, 6:25 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 2
thanks
30th May 2019, 6:29 AM
Jesse
+ 2
Jesse Welcome๐Ÿ˜Š๐Ÿ˜Š๐Ÿ‘๐Ÿ‘
30th May 2019, 6:30 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
0
I do t understand anything u said
16th Oct 2020, 12:06 AM
Gamer
30th Jan 2023, 9:52 PM
Kingdavid Christian
Kingdavid Christian - avatar