Beginner Challenge | Quadratic formula Solver 11-14-2013, 10:25 PM
#1
Solve for x and takes input on a b and c.
![[Image: Quadratic.formula.jpg]](http://0.tqn.com/d/create/1/0/i/9/9/-/Quadratic.formula.jpg)
Solution
![[Image: Quadratic.formula.jpg]](http://0.tqn.com/d/create/1/0/i/9/9/-/Quadratic.formula.jpg)
Solution
Spoiler:
Code:
import math
a = int(raw_input('Please input a: '))
b = int(raw_input('Please input b: '))
c = int(raw_input('Please input c: '))
print "x = " + str((b * -1 + math.sqrt(b**2 - 4*a*c))/ 2 * a) + ", " + str((b * -1 - math.sqrt(b**2 - 4*a*c))/ 2 * a)
#MakeSinisterlySexyAgain



















![[+]](https://sinister.li/images/modern/collapse_collapsed.png)




Me and Lux are the realest users here.









![[Image: 7ajmN5P.jpg]](https://i.imgur.com/7ajmN5P.jpg)









