有以下程序 main() { int s,t,a,b; scanf("%d,%d",&a,&b); s=1; t=1; if(a>0) s=s+1; if(a>b) t=s+t; else if(a==b) t=5; else t=2*s; printf("t=%d\n",t); } 为了使输出结果为 :t=4, 则给 a 和 b 输入的值应满足的条件是 ( )
A.
a>b
B.
a>0 且 a>b
C.
a
D.
a>0 且 a
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】Salvatore has the opportunity to invest in a scheme which will pay $5000 at the end of each of the next 5 years. He must invest $10,000 at the start of the first year and an additional $10,000 at the ...
【单选题】Salvatore has the opportunity to invest in a scheme which will pay $5000 at the end of each of the next 5 years. He must invest $10,000 at the start of the first year and an additional $10,000 at the ...