EJERCICIO N 01 REALICE UN PROGRAMA QUE IMPRIMA DEL 1 AL 20 USANDO DO WHILE LOOP Dim i as Integer i = 1 Do While i < 20 i = i + 1 TextBox2.Text = i Loop EJERCICIO 02 FACTORIAL DE UN NUMERO Dim i, n, al As Integer n = TextBox1.Text i = 1 al = 1 DoWhile i <= n al = al * i i = i + 1 Loop TextBox2.Text = al End Sub TextBox1.Text = " " TextBox2.Text = " " End EJERCICIO N 03 EXPONETE Dim a, b, i, z AsInteger a = TextBox1.Text b = TextBox2.Text i = 1 z = 1 DoWhile (i <= b) z = z * a i = i + 1 Loop TextBox3.Text = z TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" EJERCICIO N 04 UN PROGRAMA QUE PERMITA HALLAR EL N NUMERO DE LA SERIE DE FIBONACCI EJERCICIO N 05 INGRESAR N NUMEROS Y CUANTOS PARES EXISTEN PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a, b, i, n, c AsInteger i = 0 a = TextBox1.Text c = 0 DoWhile i <= a i = i + 1 n = Val(TextBox2.Text) b = n Mod 2 If b = 0 Then c = c + 1 EndIf Loop TextBox3.Text = c EndSub PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" EndSub EJERCICIO N 06 Suma de factorial PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i, n, j, sum, al AsInteger n = TextBox1.Text i = 1 al = 1 sum = 0 j = 1 DoWhile i <= n DoWhile j <= i al = al * j j = j + 1 Loop sum = sum + al i = i + 1 Loop TextBox2.Text = sum TextBox1.Text = " " TextBox2.Text = " " End