请阅读以下程序:该程序()。#include "stdio.h"int main(){ int x=-10, y=5, z=0;if (x=y+z)printf("***\n" );elseprintf("$$$\n");}
A. 有语法错不能通过编译
B. 可以通过编译但不能通过连接
C. 输出***
D. 输出$$$
以下程序的功能是计算一元二次方程ax2+bx+c=0的根。请在【】内填入正确内容。#include ”stdio.h”#include ”math.h”main(){float a,b,c,t,disc,w,term1,term2;printf(”enter a,b,c:”);scanf(%f%f%f”,&a,&b,&c);if (【1】)if (【2】) printf(”no answer due to input error\n”);else printf(”the single root is %f\n”, - c/b);else{ disc=b*b-4*a*c;w=2*a;term1= -b/w;t=abs(disc);term2=sqrt(t)/w;if (【3】)printf(”complex root\n real part=%f imag part =%f\n”, term1,term2);elseprintf(”real roots\n root1=%f root2=%f\n”, term1+term2,term1-term2);}}