program Java untuk menghitung x pangkat y (x^y)


Script;
Module Module1

Sub Main()
Dim x, y, z As Integer
Console.WriteLine("Masukkan Nilai x:")
x = CInt(Console.ReadLine)
Console.WriteLine("Masukkan Nilai y:")
y = CInt(Console.ReadLine)

z = CInt(x ^ y)
Console.WriteLine("x pangkat y (x^y)")
Console.WriteLine("Hasilnya adalah " & z)
Console.WriteLine("The end")
Console.ReadKey()

End Sub

End Module


0 Responses So Far: