VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 1560 ClientLeft = 60 ClientTop = 345 ClientWidth = 1950 LinkTopic = "Form1" ScaleHeight = 1560 ScaleWidth = 1950 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command1 Caption = "обчислити" Height = 375 Left = 0 TabIndex = 2 Top = 1200 Width = 1935 End Begin VB.TextBox Text2 Height = 375 Left = 0 TabIndex = 1 Text = "Text2" Top = 600 Width = 1935 End Begin VB.TextBox Text1 Height = 375 Left = 0 TabIndex = 0 Text = "Text1" Top = 0 Width = 1935 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() a = Text1 f = 1 For i = 1 To a f = f * i Next i Text2 = f End Sub Private Sub Form_Load() Text1 = 0 Text2 = 0 End Sub