Las operaciones no son las mismas y los resultados de las orillas sí te los dan.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúPublic Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim text1 As Integer
Dim text3 As Integer
Dim text5 As Integer
Dim a As Integer
Dim b As Integer
Dim text2 As String = TextBox2.Text
Dim text4 As String = TextBox4.Text
For text1 = 1 To 9
For text3 = 1 To 9
For text5 = 1 To 9
If text2 = "*" Then a = text1 * text3
If text2 = "+" Then a = text1 + text3
If text2 = "-" Then a = text1 - text3
If text2 = "/" Then a = text1 / text3
If text4 = "*" Then b = a * text5
If text4 = "+" Then b = a + text5
If text4 = "-" Then b = a - text5
If text4 = "/" Then b = a / text5
If b = Val(TextBox6.Text) Then [b]TextBox1.Text = text1 And TextBox3.Text = text3 And TextBox5.Text = text5[/b]
Next
Next
Next
End Sub
End Class
Private Sub Button6_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
If Not IsNumeric(TextBox4.Text) Then Exit Sub
Label16.Text = ""
Label7.Text = ""
Label5.Text = ""
If Label16.Text = "" Then Label16.Text = 0
If Label7.Text = "" Then Label7.Text = 0
Dim a As Double
Dim b As Integer = TextBox4.Text
For b = 1 To b
a = Rnd()
If a < 0.5 Then Label16.Text = Label16.Text + 1
Next b
Label7.Text = TextBox4.Text - Label16.Text
If Label5.Text = "" Then Label5.Text = 0
Label5.Text = Label16.Text - Label7.Text
End Sub
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click
If Not IsNumeric(TextBox6.Text) Then Exit Sub
Labelsolución.Text = ""
If Labelsolución.Text = "" Then Labelsolución.Text = 0
Dim x As Integer
Dim z As Integer
Dim g As Integer
Dim t As Integer
Do Until TextBox6.Text = t Or TextBox6.Text = t * (-1)
Dim a As Double
Dim b As Double = TextBox6.Text
For b = 1 To b
a = Rnd()
If a < 0.5 Then z = z + 1
Next b
g = TextBox6.Text - z
t = z - g
x = x + 1
Loop
Labelsolución.Text = x
End Sub
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cb As Integer 'pre Cateto (b)
Dim ca As Integer 'Cateto (a)
Dim y As Integer 'Hipotenusa
Dim captation As Integer ' Cateto (b)
For y = 1 To TextBox1.Text
For ca = 1 To TextBox1.Text
cb = (Math.Sqrt(y ^ 2 - ca ^ 2))
If cb = (xxxxxxxxxx) Then captation = cb
If y ^ 2 = captation ^ 2 + ca ^ 2 Then
ListBox1.Items.Add(y)
ListBox2.Items.Add(ca)
ListBox3.Items.Add(captation)
End If
Next
Next
End Sub
End Class