给我看看这个程序的问题,求一元二次方程的解#include#include{floata,b,c,d,x1,x2;scanf(quot;%f,%f,%fquot;,amp;a,%b,amp;c);d=b*b-4*a*cif(d==0){x1=(-b)/2*aprintf(quot;x1=%fnquot;,x1);}elseif(dgt;0){x1=(-b)+sqrt(d)/2*a;x2=(-b)-
<p>问题:给我看看这个程序的问题,求一元二次方程的解#include#include{floata,b,c,d,x1,x2;scanf(quot;%f,%f,%fquot;,amp;a,%b,amp;c);d=b*b-4*a*cif(d==0){x1=(-b)/2*aprintf(quot;x1=%fnquot;,x1);}elseif(dgt;0){x1=(-b)+sqrt(d)/2*a;x2=(-b)-sqrt(d)/2*a;printf(quot;x1=%f,x2=%<p>答案:↓↓↓<p class="nav-title mt10" style="border-top:1px solid #ccc;padding-top: 10px;">雷靖的回答:<div class="content-b">网友采纳 youarelackof"main"progrom Pleaseadd"voidmain()"beforethefirstbrackets
页:
[1]