计算过程要放在输入值之后,scanf("%lf%lf%lf",&a,&b,&c);这句位置放到q=((-b)+sqrt(b*b-4*a*c))/(2*a);之前去,不然值还没输入,你怎么计算结果?
#include #include main() {double a,b,c,q,w,e; q=((-b)+sqrt(b
1个回答
相关问题
-
若有一下定义和语句#include int a=4,b=3,*p,*q,*w;p=&a;q=&b;w=q;q=NU
-
#include #include int main(void) { float a,b,c,x,y,z; printf
-
为什么错了.#include#include#includevoid main(){ float a,b,c,l,s;
-
#include #include main() { float a; int b; a=4.55 ; b=4.5%3;
-
#include #include void main() { float a,b,c,m,n,x1,x2; sc
-
#include func(int a,int b){int c; c=a+b;returnc;}main(){intX
-
杭电2034人人都爱A-B#include#include#include#define N 102int main()
-
include including included 3Q
-
#include using namespace std; int main() { int a,b,c,d; a=c=
-
#include main() { int a,b,c1,c2,c3,c4; scanf("%d,%d",&a,&b);