py-repo

a python playground
Index Commits Files Refs README
cuadratic.py (229B)
   1 import math
   2 
   3 a = int(input("a: "))
   4 b = int(input("b: "))
   5 c = int(input("c: "))
   6 
   7 x1 = (((-b) + math.sqrt((b*b)-(4*a*c))) / (2*a))
   8 x2 = (((-b) - math.sqrt((b*b)-(4*a*c))) / (2*a))
   9 
  10 print("x1 = " + str(x1))
  11 print("x2 = " + str(x2))