print('Calcula raizes equação 2º grau')
a = float(input('Informe o Valor de A'))
if a == 0:
print('a equação não é do segundo grau')
exit()
b = float(input('Informe o Valor de B'))
c = float(input('Informe o Valor de C'))
delta = (b ** 2) - 4 * (a * c)
print(delta)
if delta < 0:
print('A equação não possui raizes reais')
exit()
if delta > 0:
print('possui 2 raizes reais ')
raizdelta = delta ** 0.5
print('Raiz de delta',raizdelta)
x1 = (-b + raizdelta) / (2 * a)
x2 = (-b - raizdelta) / (2 * a)
print('x1',x1)
print('x2',x2)
#https://pt.stackoverflow.com/q/329931/101
cHJpbnQoJ0NhbGN1bGEgcmFpemVzIGVxdWHDp8OjbyAywrogZ3JhdScpCmEgPSBmbG9hdChpbnB1dCgnSW5mb3JtZSBvIFZhbG9yIGRlIEEnKSkKaWYgYSA9PSAwOgogICAgcHJpbnQoJ2EgZXF1YcOnw6NvIG7Do28gw6kgZG8gc2VndW5kbyBncmF1JykKICAgIGV4aXQoKQpiID0gZmxvYXQoaW5wdXQoJ0luZm9ybWUgbyBWYWxvciBkZSBCJykpCmMgPSBmbG9hdChpbnB1dCgnSW5mb3JtZSBvIFZhbG9yIGRlIEMnKSkKZGVsdGEgPSAoYiAqKiAyKSAtIDQgKiAoYSAqIGMpCnByaW50KGRlbHRhKQppZiBkZWx0YSA8IDA6CiAgICBwcmludCgnQSBlcXVhw6fDo28gbsOjbyBwb3NzdWkgcmFpemVzIHJlYWlzJykKICAgIGV4aXQoKQppZiBkZWx0YSA+IDA6CiAgICBwcmludCgncG9zc3VpIDIgcmFpemVzIHJlYWlzICcpCiAgICByYWl6ZGVsdGEgPSBkZWx0YSAqKiAwLjUKICAgIHByaW50KCdSYWl6IGRlIGRlbHRhJyxyYWl6ZGVsdGEpCiAgICB4MSA9ICgtYiArIHJhaXpkZWx0YSkgLyAoMiAqIGEpCiAgICB4MiA9ICgtYiAtIHJhaXpkZWx0YSkgLyAoMiAqIGEpCiAgICBwcmludCgneDEnLHgxKQogICAgcHJpbnQoJ3gyJyx4MikKICAgIAojaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzMyOTkzMS8xMDE=