>
数学
>
VB 循环结构题目
用for……to……step语句计算:1/1+1/(2!)+1/(3!)+1/(4!)
+……1/(n!)
人气:331 ℃ 时间:2020-06-27 03:55:56
解答
当N较大时,N!会出错.
请看:
Dim i As Long
Dim sinTemp As Single
Dim sinSum As Single
sinSum = 1#
sinTemp = 1#
For i = 1 To 10 '00
sinTemp = sinTemp / i
sinSum = sinSum + sinTemp
Next i
Print sinSum
推荐
vb 循环结构中的一题
It was sunny,.变一般疑问句
ph<7 ,溶液一定是酸吗?
天体物理学与天文学有什么区别?
小方家用12米长的篱笆靠墙围了一个边长为2.5米的长方形养鸡栏,则它的面积最大是多少平方米?
冠词单句改正
根号3乘以7.92除以2等于多少?
在数列{an}中.a1=2,a(n+1)=-2an+3 则数列通项公式是
猜你喜欢
I have been very busy the last few days
形容“什么东西一多就不好了”的成语
一个数的二分之一是比个数的百分之二十五多10,这个数是多少?
( )weather it was that day!A.What a bad B.How bad C.How a bad D.What bad
[(3x+2x)-15]:3x=5:4
Who told you to clean the windows?-Father ( ).He said they are too dirty .A told B d id
小红,小丽二人去超市购物,她们所带的钱数之比是7:6,小红用掉50元,小丽用掉60元,俩人余下的钱数之比是3:2,
一缕阳光作文600字
© 2026 79432.Com All Rights Reserved.
电脑版
|
手机版