Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

CUADRADO DE UN NUMERO

Public Class Form1


Dim num As Integer
Dim cuadrado As Integer
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
num = TextBox1.Text
cuadrado = TextBox1.Text * TextBox1.Text
TextBox2.Text = cuadrado
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
End Sub
End Class









X
1

X
2

INICIO
X
2
=X
1
* X
1

FIN

You might also like