fb编程求 sn=a+aa+aaa+```+的值将下列程序补充完整.求 sn=a+aa+aaa+```+的值(例如 ,当a=2,n=4时,sn=2+22+222+2222).dim as integer a,ninput "a,n=",a,ns=0:t=0for i = 1 to ()t=()s=s+tnext iprint "s=";ssleepend

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 00:27:47
fb编程求sn=a+aa+aaa+```+的值将下列程序补充完整.求sn=a+aa+aaa+```+的值(例如,当a=2,n=4时,sn=2+22+222+2222).dimasintegera,ni

fb编程求 sn=a+aa+aaa+```+的值将下列程序补充完整.求 sn=a+aa+aaa+```+的值(例如 ,当a=2,n=4时,sn=2+22+222+2222).dim as integer a,ninput "a,n=",a,ns=0:t=0for i = 1 to ()t=()s=s+tnext iprint "s=";ssleepend
fb编程求 sn=a+aa+aaa+```+的值
将下列程序补充完整.
求 sn=a+aa+aaa+```+的值(例如 ,当a=2,n=4时,sn=2+22+222+2222).
dim as integer a,n
input "a,n=",a,n
s=0:t=0
for i = 1 to ()
t=()
s=s+t
next i
print "s=";s
sleep
end

fb编程求 sn=a+aa+aaa+```+的值将下列程序补充完整.求 sn=a+aa+aaa+```+的值(例如 ,当a=2,n=4时,sn=2+22+222+2222).dim as integer a,ninput "a,n=",a,ns=0:t=0for i = 1 to ()t=()s=s+tnext iprint "s=";ssleepend
n
[10^(i-1)]*a+s