若下列程序执行后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); }

时间:2023-09-17 16:38:50

相似题目