在执行以下程序时,为了使输出结果为t=4,则给a和b输入的值应当满足的条件是______。 a=InputBox(“a=”) b=InputBox(“b=”) s=1 t=1 If a>0 Then s=s+1 End If If a>b Then t=s+1 Else If a=b Then t=5 Else t=2*s End If End If Print tA.a>bB.a<b<0C.0<a<bD.0>a>b

在执行以下程序时,为了使输出结果为t=4,则给a和b输入的值应当满足的条件是______。 a=InputBox(“a=”) b=InputBox(“b=”) s=1 t=1 If a>0 Then s=s+1 End If If a>b Then t=s+1 Else If a=b Then t=5 Else t=2*s End If End If Print t

A.a>b

B.a<b<0

C.0<a<b

D.0>a>b


相关考题:

下列程序执行时,从键盘上依次输入123和234,则程序的输出结果是【 】。a=InputBox("请输入第一个整数")b=InputBox("请输入第二整数")Print a+b

在执行以下程序时,为了使输出结果为:t=4,则给a和b输入的值应满足的条件是______。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+1; else if (a==b) t=5; else t=2*s; printf("%d\n",t);}A.a>bB.a<b<0C.0<a<bD.0>a>b

执行以下程序段,并输入1.23,则程序的输出结果应是【 】。N=Str(InputBox(“请输入一个实数:”))p=IiaStr(N,".")Print Mid(N,p)

下列程序执行后,分别输入5,10,则输出的结果是______ 。 a= InputBox (“请输入数据”“a”“的值”) b= InputBox (“请输入数据”“b”&“的值”) c= a + b +“5”Print cA.15 5B.5105C.20D.25

以下程序运行时,输入3和4后输出的结果是______。 Private Sub Command1_Click() a=InputBox(“请输入a的值”) b=InputBox(“请输入b的值”) Print a+b End SubA.3+4B.7C.34D.12

在执行以下程序时,为了使输出结果为t=4,给a和b输入的值应该满足的条件是_______。 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); }A.a>bB.a<b<0C.0<a<bD.0>a>b

执行以下程序时输入1234567,则输出结果是【 】。 includemain(){int a=1,b; scanf("%2 执行以下程序时输入1234567<CR>,则输出结果是【 】。include <stdio.h>main(){ int a=1,b;scanf("%2d%2d",a,b); prinff("%d %dhn",a,b);}

在执行以下程序时,为了使输出结果为t=4, 则给a和b输入的值应满足的条件是() #include<stdio.h> void 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+1; else if(a= =b) t=5; else t=2*s; printf("t=%dn",t); }A.0 > a > bB.a=0 < bC.a=b < 0D.a < b < 0

【填空题】请阅读以下程序,为使输出时t值为4,输入量a和b应满足的条件是 。 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("s=%d,t=%d",s,t); }