Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- P = input().split()
- A, B, C = int(P[0]), int(P[1]), int(P[2])
- D = B ** 2 - 4 * A * C
- if D < 0:
- print('No roots')
- else:
- if len(str(D ** 0.5)) < 13:
- S = str(-B) + ' +- ' + str(int(D ** 0.5))
- else:
- S = str(-B) + ' +- ' + '√' + str(D)
- print(S)
- print('———————————')
- print(2 * A)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement