這個用Python3的函式怎么寫?
uj5u.com熱心網友回復:
用公式法
a=int(input())
b=int(input())
c=int(input())
sqrtdeta=(b**2-4*a*c)**0.5
x1=(sqrtdeta-b)/(2*a)
x2=(-sqrtdeta-b)/(2*a)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/105856.html
標籤:Java相關
上一篇:關于Scanner的一個小問題
