NOMBRE: JENIFFER ARIAS CURSO: 6 “G” FACTORIAL DE UN NÚMERO Public Class Form1 Private Sub Button2_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim n, i, f As Integer n = TextBox1.Text i = 1 f = 1 Do While (i <= n) f = f * i i = i + 1 Loop textbox2.text = f End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click End End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = " " TextBox2.Text = " " End Sub End Class Public NOMBRE: JENIFFER ARIAS CURSO: 6 “G” Class Form1 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim b, ex, i, p As Integer b = TextBox1.Text ex = TextBox2.Text i = 1 p = 1 Do While (i <= ex) p = p * b i = i + 1 Loop TextBox3.Text = p End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = " " TextBox2.Text = " " TextBox3.Text = " " End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click End End Sub End Class