题目内容

请阅读以下程序:该程序()。#include "stdio.h"int main(){ int x=-10, y=5, z=0;if (x=y+z)printf("***\n" );elseprintf("$$$\n");}

A. 有语法错不能通过编译
B. 可以通过编译但不能通过连接
C. 输出***
D. 输出$$$

查看答案
更多问题

输入一个整型数据,分别求出各位数字。

输入两个整数a和b,若a-b的结果为奇数,则输出该值,否则输出提示信息。

以下程序的功能是计算一元二次方程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);}}

A speaker wants to demonstrate the change in world population since 1840. His clearest and most effective option for a visual aid to demonstrate this is a(n)______

A. Line graph.
B. Map.
C. Bar graph.
D. Chart.

答案查题题库