+ 2

Please resolve this formula in programming language

-b+-√b*b-4ac/2a

25th Nov 2017, 2:01 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
9 Respuestas
+ 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;
25th Nov 2017, 3:25 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 2
which programming language?
25th Nov 2017, 2:05 AM
Uttam
Uttam - avatar
25th Nov 2017, 3:46 AM
Sam Shanmukh
Sam Shanmukh - avatar
+ 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)
26th Nov 2017, 2:53 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar
+ 1
in ++ or python
25th Nov 2017, 2:06 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
0
c++
25th Nov 2017, 2:06 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
0
thanks
25th Nov 2017, 11:05 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar