How to calculate the volume of cuboid in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim length, width, height As Single
		
        length = 6
        width = 4
        height = 5
		
        Dim volume As Single = height * width * length
		
        Console.WriteLine("Volume of Cuboid = " & volume)
    End Sub
End Class



' run:
'
' Volume of Cuboid = 120
'

 



answered Sep 10, 2021 by avibootz

Related questions

1 answer 143 views
1 answer 115 views
1 answer 115 views
1 answer 143 views
1 answer 107 views
107 views asked Sep 10, 2021 by avibootz
1 answer 149 views
...