>
其他
>
VB程序输入整数N,计算前N项和S=1+(1+2)+(1+2+3)+(1+2+3+4)+….
人气:299 ℃ 时间:2020-10-02 00:50:33
解答
Private Sub Command1_Click()
Dim i,n,s As Integer
n = Val(Text1.Text)
s = 0
For i = n To 0 Step -1
s = s + i * (i + 1) / 2
Next i
Text2.Text = s
End Sub
推荐
编写一个VB程序,计算m和n值的最大公约数t,其中m,n是整数且大于0,要求输入m和n.
VB编写程序,计算并输出下面级数前n项中(n=50)奇数项的和.1*2*3+2*3*4+3*4*5+……+n*(n+1)*(n+2)+…
VB中编写一个子过程,计算1*3+2*4+3*5+····+(n-2)*n的值
The book is yours is in my bag 有 mine,Susan is a beauting girl this nice dress is
《床头捉刀人》的翻译
世界三大瀑布是哪三个?瀑布!
猜你喜欢
已知√3sinα-cosα=4m-6(0<α<π),求m的取值范围
请问:the literature of knowledge and the literature of power怎么译
一个长100m宽60m的游泳池扩建成一个周长为600m的大型水上游乐场,把游泳池的长增加xm,那么x等于多少时,水上游乐场的面积为20000m2?列出方程_,能否求出x的值:_(能或不能).
英语翻译
英文字母拼单词
分组分解法的一道题
跟祖父学诗阅读答案
season the of year autumm is third (.) the 11th is November of month year the (.) 连词成句
© 2024 79432.Com All Rights Reserved.
电脑版
|
手机版