Project problem | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Project problem

Write a program using Python that finds the solutions to the following formula with 1 decimal place accuracy. -10x^2+30x-20 > 0 I'm having a very hard time coming up with a result for this. I'm relatively new to coding and this is really giving me a hard time. Any help at all would be greatly appreciated. Thanks!

16th Jun 2018, 1:54 PM
Mr.B
3 Respuestas
+ 1
so, we have to find the value of x for which the equation=0?
16th Jun 2018, 2:00 PM
Sahil Danayak
Sahil Danayak - avatar
+ 1
try taking the input as a string. then separate the coefficients of x^2, x and the constant term. then use quadratic formula to get the roots.
16th Jun 2018, 2:03 PM
Tejaswi Hegde
Tejaswi Hegde - avatar