python input quadratic formula code example
Example: python input quadratic formula
import math
print(' ')
print('welcome to bright\'s quadratic formula calculator')
print('please put in the following values')
print(' ')
a = input('a value:\n')
b = input('b value:\n')
c = input('c value:\n')
a=float(a)
b=float(b)
c=float(c)
print((-b + math.sqrt(b ** 2 - 4*a*c))/2*a)
print((-b - math.sqrt(b ** 2 - 4*a*c))/2*a)