在VB中求(1^2+2^2+3^2+4^2+5^2+6^2+7^2+8^2+9^2+10^2)/10的代码

问题描述:

在VB中求(1^2+2^2+3^2+4^2+5^2+6^2+7^2+8^2+9^2+10^2)/10的代码
要用for...next 语句
1个回答 分类:综合 2014-10-10

问题解答:

我来补答
debug.print
(1^2+2^2+3^2+4^2+5^2+6^2+7^2+8^2+9^2+10^2)/10
再问: 能用上For语句吗?
再答: dim i,l
for i=1 to 10
l=l+i^2

next i
l=i/10
 
 
展开全文阅读
剩余:2000