📄 zhonghe2.frm
字号:
VERSION 5.00
Begin VB.Form Zhonghe2
Caption = "求水仙花数"
ClientHeight = 1500
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 1500
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "求解"
Height = 495
Left = 3120
TabIndex = 0
Top = 960
Width = 975
End
End
Attribute VB_Name = "Zhonghe2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer, j As Integer, k As Integer, n As Integer
For n = 100 To 999
i = Int(n / 100)
j = Int(n / 10) - i * 10
k = n Mod 10
If n = i * i * i + j * j * j + k * k * k Then Print n;
Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -