VERSION 5.00 Begin VB.Form Form1 BackColor = &H00FFFF00& Caption = "Rad" ClientHeight = 2655 ClientLeft = 2985 ClientTop = 3345 ClientWidth = 6135 Icon = "Rad.frx":0000 LinkTopic = "Form1" ScaleHeight = 2655 ScaleWidth = 6135 Begin VB.CommandButton Command2 Cancel = -1 'True Caption = "В&ыход" Height = 495 Left = 4680 TabIndex = 1 ToolTipText = "Для завершения работы программы нажмите кнопку ""Выход""" Top = 2040 Width = 1335 End Begin VB.CommandButton Command1 Caption = "Выч&ислить" Default = -1 'True Height = 495 Left = 4680 TabIndex = 0 ToolTipText = "Для вычисления конечной суммы ряда, нажмите кнопку ""Вычислить""" Top = 1320 Width = 1335 End Begin VB.Line Line6 X1 = 6120 X2 = 6120 Y1 = 0 Y2 = 2640 End Begin VB.Line Line5 X1 = 0 X2 = 0 Y1 = 0 Y2 = 2640 End Begin VB.Line Line4 X1 = 0 X2 = 6120 Y1 = 2640 Y2 = 2640 End Begin VB.Line Line3 X1 = 0 X2 = 6120 Y1 = 1920 Y2 = 1920 End Begin VB.Line Line2 X1 = 0 X2 = 6120 Y1 = 1200 Y2 = 1200 End Begin VB.Line Line1 X1 = 0 X2 = 6120 Y1 = 0 Y2 = 0 End Begin VB.Label Label2 BackColor = &H00FFFF00& Caption = "Для вычисления конечной суммы данного ряла, нажмите кнопку ""Выч&ислить"" и Вы получите "" О Т В Е Т "" ." Height = 495 Left = 120 TabIndex = 5 ToolTipText = "Условие" Top = 1200 Width = 4455 End Begin VB.Label Label3 BackColor = &H00FFFF00& Caption = "Для завершения работы программы нажмите кнопку ""В&ыход""." Height = 495 Left = 120 TabIndex = 4 ToolTipText = "Условие" Top = 2040 Width = 4455 End Begin VB.Label Label4 Alignment = 2 'Center BackColor = &H00FFFF00& Caption = "О Т В Е Т" BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FF0000& Height = 255 Left = 1560 TabIndex = 3 ToolTipText = "Ответ" Top = 1680 Width = 1815 End Begin VB.Image Image1 Height = 450 Left = 1080 Picture = "Rad.frx":0442 Top = 360 Width = 600 End Begin VB.Label Label1 BackColor = &H00FFFF00& Caption = $"Rad.frx":1294 Height = 975 Left = 120 TabIndex = 2 ToolTipText = "Задание" Top = 120 Width = 5895 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Function fac(x) fac = 1 For t = 1 To x fac = fac * t Next End Function Private Sub Command1_Click() s = InputBox("Введите число k", "Ввод k", "8") For i = 0 To s n = n + 1 / fac(i * 2) Next Label4.Caption = Format(n, "#0.##########") End Sub Private Sub Command2_Click() End End Sub