Variable index : Console Write « Language Basics « VB.Net Tutorial






Public Class Tester
    Public Shared Sub Main

        Console.WriteLine(String.Format( _
            "There are about {0} days in {1} years.", _
            365.25 * 3, 3, 17))
 
    End Sub

End Class
There are about 1095.75 days in 3 years.








1.4.Console Write
1.4.1.Output string to the Console
1.4.2.Variable index
1.4.3.Write some text based on the specified data type
1.4.4.Concatenate strings in Console.WriteLine statement
1.4.5.Reference variable index in Console.WriteLine
1.4.6.Use Console.WriteLine to display various type variables