#20387: 解題關鍵:>


811122@stu.cchs.chc.edu.tw (吳家勝)


在two same roots這邊(b*b -4*a*c ==0)

不要省略成這樣

x=-b / (2*a) ;

要完整的

 

x=(-b+(sqrt(b*b-4*a*c))) / (2*a) ;

要用根號先要

#include<math.h>