+ 2
Please resolve this formula in programming language
-b+-âb*b-4ac/2a
9 Answers
+ 12
C++:
float a, b, c;
cin >> a >> b >> c;
float d = -b / (2 * a);
float e = sqrt(b * b - 4 * a * c) / (2 * a);
cout << d - e << endl << d + e;
+ 2
which programming language?
+ 2
#python
import math
a=int(input ());b=int(input());c=int(input())
d=math.sqrt(b*b-4*a*c)/2*a
b=-b/2*a
print(-b+d)
print(-b-d)
+ 1
in ++ or python
0
c++
0
thanks