Do calculation in Console.WriteLine
Imports System
public class MainClass
Shared Sub Main()
Dim twelve As Integer = 12
Dim five As Integer = 5
Console.WriteLine("{0} + {1} = {2}", _
twelve, five, twelve + five)
Console.WriteLine("{0} - {1} = {2}", _
twelve, five, twelve - five)
Console.WriteLine("{0} * {1} = {2}", _
twelve, five, twelve * five)
End Sub
End Class
Related examples in the same category