关于作者

Discuss / Python / 作业

作业

Topic source

大大大O璐璐

#1 Created at ...

import math

def my_quadratic(a,b,c): s = b*2-4ac if s>0: print('two answer') return ((math.sqrt(s)-b)/(2a),(-math.sqrt(s)-b)/(2a)) elif s<0: print('no way') else: print('two equal answer') return ((math.sqrt(s)-b)/(2a))


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.