以下程序的输出结果是()。double sub(double x, double y, double z){ y -= 1.0;z = z + x;return z;}main(){ double a = 2.5, b = 9.0;printf(“%f\n”, sub(b - a, a, b));}
A. 15.500000
B. 15.5
C. 15
D. 15.00
若执行下面的程序时从键盘上输入3和4,程序输出的结果是()。main(){ int a,b,s;scanf("%d %d",&a,&b);s=a;if(a
A. 16
B. 14
C. 18
D. 20