📄 3-7.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "3-7"
ClientHeight = 2220
ClientLeft = 60
ClientTop = 345
ClientWidth = 3675
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 2220
ScaleWidth = 3675
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "开始求值"
Height = 375
Left = 480
TabIndex = 0
Top = 120
Width = 2775
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 1095
Left = 480
TabIndex = 1
Top = 840
Width = 2895
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Sum = 0
For i = 1 To 10
Sum = Sum + i ^ i
Next i
Label2.Caption = "多项式(1+2^2+3^3+...10^10)的值是" & Format(Sum)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -