tags:

views:

35

answers:

3

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?

+1  A: 
Josaph
+2  A: 
Console.WriteLine("The addition is, {0} {1}", _
    Environment.NewLine, i)
dbasnett
A: 

Agree with Josaph, but I would do so like this:

Console.Writeline("The addition is{0}", vbCrLf & i)
knslyr