In console application we write the statement as
Console.WriteLine("the addition is {0}",i)
it gives the output
addition is 50
Now my question is: I want the answer to appear like this:
addition is
50
How I will assign the output to the next line?
Console.WriteLine("The addition is, {0} {1}", _
Environment.NewLine, i)
I agree with rdkleine. Punctuation in your question would be very helpful. But, I'm going to step out on a limb and assume you mean, how can I add a line break to the output using Console.WriteLine.
Use vbcrlf to generate a line break.
Console.WriteLine("The addition is" & vbCrLf & "{0}", i)
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