Exponential Operator in vb.net
Exponential Operator use to raising a number to particular power of another number (exponent).
Exponential Operator '^' use to raising a number to particular power of another number (exponent). Exponents are used in engineering, scientific and statistics work because in which many calculation depend on squares ,squares roots and fraction obtained by using a negative exponent of numbers.
Syntax
number ^ exponent
For example: 25 would evaluate to 32.
Dim n1 As Integer
n1 = 2 ^ 5
Code
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim text As String = TextBox1.Text
Dim n1 As Integer = Convert.ToInt32(text)
Dim text1 As String = TextBox2.Text
Dim n2 As Integer = Convert.ToInt32(text1)
Label3.Text = n1 ^ n2.ToString()
Label3.Visible = True
End Sub
End Class
Output 1

Output 2
