作者:VB.NET开发
项目:Syste
Public Module Example
Public Sub Main
Dim value As Integer = 2
For power As Integer = 0 To 32
Console.WriteLine("{0}^{1} = {2:N0} (0x{2:X})", _
value, power, CLng(Math.Pow(value, power)))
Next
End Sub
End Module
作者:VB程序
项目:Syste
' 导入命名空间
Imports System.IO
Module Module1
Sub Main()
Console.WriteLine("Absolute value of -1 is " & Math.Abs(-1))
Console.WriteLine("Square Root of 144 is " & Math.Sqrt(144))
Console.WriteLine("Value for PI is " & Math.PI)
Console.WriteLine("10 raised to the power of 2 is " & Math.Pow(10, 2))
End Sub
End Module