Calculate a volume
- Last UpdatedApr 24, 2025
- 1 minute read
The following piece of code calculates the volume of a cylinder and illustrates the use of the System.Math class.
Dim Height As Double = input1
Dim Radius As Double = input2
output = System.Math.Pi * System.Math.Pow(Radius, 2) * Height