I want my program to write the following to to the console:
The volume of your Right Rectangular Prism is: * Cm^3
But I don't know how to make it write anything after I specify the "& volume" in the call to the WriteLine
method. Is there any way to actually do this?
Here is my code for that line:
Console.Write("The volume of your right rectangular prism is: " & volume):("Cm^3")
Looks like a line of C#?
You can use something like:
Console.Write("The volume of your right rectangular prism is: ");
Console.WriteLine(volume & " Cm^3");
Try it this way:
Console.Write("The volume of your right rectangular prism is: " & volume & " whatever else you want to say")
In fact you could keep going... the basic concept is end your text then do a &
, then add the variable. If you need more you can always repeat it the same way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With