Private Sub Form_Click()
Dim x As Integer, y As Integer
x = Val(InputBox(WWW))
If x = 0 Then y = cosx - x ^ 2 + 3 * x
Else If
y = sinx + Sqr(x ^ 2 + 1)
Text1.Text = x
Text2.Text = y
End If
End If
End Sub
Dim x As Integer, y As Integer
x = Val(InputBox("www"))
If x = 0 Then
y = Math.Cos(x) - x ^ 2 + 3 * x
Else
y = Math.Sin(x) + Math.Sqrt(x ^ 2 + 1)
End If
Text1.Text = x
Text2.Text = y