Please how do I write a code that can calculate this : ax^2 + bx + c=0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please how do I write a code that can calculate this : ax^2 + bx + c=0?

28th Apr 2018, 7:21 AM
MESAGAN BEST
MESAGAN BEST - avatar
6 Answers
+ 6
Mesagan posted in another thread : " good morning house , please I was asked to write a code that can calculate : ax^2 + b.x + c =0. please how do I go about it? thanks" It sounds like his teachers never gave him any math lesson, no programming course either, and suddenly jump to asking him to code a quadratic equation solver : I say we live in a crazy word ! Megasan Best : Tell your teachers to be patient, you need some learning time first ... and start learning today, you'll enjoy it !
28th Apr 2018, 8:49 AM
Cépagrave
Cépagrave - avatar
+ 2
anyway - MESAGAN BEST . You solve it for x x= -b±sqroot(b²-4ac)/2a
28th Apr 2018, 8:54 AM
Akib
Akib - avatar
+ 1
i have a code about this in c check it out
10th May 2022, 4:43 PM
giannis
0
Like using the pq formula?
28th Apr 2018, 7:43 AM
Jonas Schröter
Jonas Schröter - avatar
0
Some one hates math.😂😂
28th Apr 2018, 8:49 AM
Akib
Akib - avatar