Online VB.Net Compiler
Imports System

Public Class Test
    Public Shared Sub Main()
        Dim x, y as Integer
        x = 20
        y = 40
        System.Console.WriteLine("Sum of x and y = " & (x+y))
    End Sub
End Class

Output Results

Visual Basic.Net Compiler version (Mono 4.8 - makepkg/e31cb702)
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.

Assembly 'jdoodle, Version=0.0, Culture=neutral, PublicKeyToken=null' saved successfully to '/home/jdoodle.exe'.
Compilation successful
Compilation took 00:00:00.9070800
Sum of x and y = 60