问答题

简答题

程序说明:下面total()过程功能是计算s=7+77+777+……+(n个7组成的数)。程序代码如下:

【参考答案】

(1)number(i)
(2)Byval n as Integer
(3)number=number+7*10^i