在3行中分别输入一个浮点数利用下面公式计算并输出x的值严格保留小数点后2 -b+√b2-4acX=—2a
a = float(input()) b = float(input()) c = float(input()) x = (-b + (b**2 - 4ac)**0.5) / (2*a) print("%.2f" % x)
原文地址: http://www.cveoy.top/t/topic/doEH 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
a = float(input()) b = float(input()) c = float(input()) x = (-b + (b**2 - 4ac)**0.5) / (2*a) print("%.2f" % x)
原文地址: http://www.cveoy.top/t/topic/doEH 著作权归作者所有。请勿转载和采集!