![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
提问人:网友ywq55555
发布时间:2022-01-07
[主观题]
若下列程序执行后t的值为4,则执行时输入a,b的值范围是 #include ”stdio.h” main() { int a, b,
若下列程序执行后t的值为4,则执行时输入a,b的值范围是 #include ”stdio.h” main() { int a, b, s=1, t=1; scanf (”%d, %d”, &a, &b); if (a>0) s+=1; if (a>b) t+=s; else if(a==b) t=5; else t = 2*s; printf (”s=%d, t=%d\n”, s,t); }
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
查看官方参考答案