factorial.frm

来自「codding for pszone one can use it at pl」· FRM 代码 · 共 54 行

FRM
54
字号
VERSION 5.00
Begin VB.Form Form3 
   Caption         =   "Form3"
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7995
   LinkTopic       =   "Form3"
   ScaleHeight     =   5280
   ScaleWidth      =   7995
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "DONE"
      Height          =   975
      Left            =   2400
      TabIndex        =   2
      Top             =   2880
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   975
      Left            =   3960
      TabIndex        =   1
      Top             =   840
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "FACTORIAL"
      Height          =   1095
      Left            =   840
      TabIndex        =   0
      Top             =   840
      Width           =   2415
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
Cls
Let N = Val(Text1)
A = 1
B = 1
Do While A <= N
B = B * A
A = A + 1
Loop
Print B
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?