下面程序的功能是计算s=1+12+123+1234+12345+……+123456789 下划线处应填写()。 #include <stdi

大学网课 已帮助 人

下面程序的功能是计算s=1+12+123+1234+12345+……+123456789,下划线处应填写()。 #include <stdio.h> int main() { int t=0,s=0,i; for(i=1; i<=9; i++) { t=____________; s=s+t; } printf("s=%d",s); return 0; }

A.10*t+i

B.t+i

C.10*i+t

D.s*10+i

下面程序的功能是计算s=1+12+123+1234+12345+……+123456789 下划线处应填写()。 #include &lt;stdi

热搜:下面程序的功能是输出数组s中最大元素