Dim a As Integer, b As Integer Private Sub CommandButton1_Click() a = TextBox1.Value b = TextBox2.Value If a - b > 8 Then CommandButton1.Caption = "Произведение = " & (a * b) Else CommandButton1.Caption = "Сумма = " & (a + b) End If End Sub
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку