單項(xiàng)選擇題

下列程序段有語(yǔ)法錯(cuò)誤的行為第()行.
1 d=b*b-4*a*c
2 if d>0
3 s=sqrt(d)
4 else s=sqrt(-d)
5 endif

A.4
B.2
C.3
D.5

微信掃碼免費(fèi)搜題