. :
volume):("Cm^3")
Write. VB.NET , , # . . ("Cm^3") - . , , . , , , :
Console.Write("The volume of your right rectangular prism is: " & volume) : Console.Write("Cm^3")
This will work, but it is a bit unusual. Typically, in VB.NET, you simply put each statement in its own line, for example:
Console.Write("The volume of your right rectangular prism is: " & volume)
Console.Write("Cm^3")
However, instead of using concatenation, at this point you can just call Writethree times, for example:
Console.Write("The volume of your right rectangular prism is: ")
Console.Write(volume)
Console.Write("Cm^3")
Or you can combine all three together into one method call Write, for example:
Console.Write("The volume of your right rectangular prism is: " & volume & "Cm^3")
Or another popular option is to use the line formatting function as follows:
Console.Write("The volume of your right rectangular prism is: {0}Cm^3", volume)
source
share