I wanted to solve an equation with the help of C.The equation is: (x^2)+5x+6=0. Can anyone give me the code of this problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I wanted to solve an equation with the help of C.The equation is: (x^2)+5x+6=0. Can anyone give me the code of this problem?

21st Mar 2021, 4:54 PM
Anikur Rahman
Anikur Rahman - avatar
3 Answers
+ 5
Eve, I don't think that there is ** operator in C language. You have to write x*x, or include math.c header and then use pow(x, 2). Anyway J0k@R , you have to try it yourself before we can tell you what to do/what are you doing wrong. Then show your attempt here and community will surely help you
21st Mar 2021, 5:13 PM
Michal Doruch
+ 1
Michał Doruch I am trying my best before I see any source code.
22nd Mar 2021, 10:12 AM
Anikur Rahman
Anikur Rahman - avatar
0
Dear viewrs,I need source code.
21st Mar 2021, 5:09 PM
Anikur Rahman
Anikur Rahman - avatar