Lecture overview -- Keyboard shortcut: 'u'  Previous page: C# in relation to Visual Basic [Section] -- Keyboard shortcut: 'p'  Next page: The Overall Picture -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Introduction to C# - slide 24 : 43

The Overall Picture
Module MyModule

    Sub Main()
        Dim name As String   ' A variable name of type string
        name = InputBox("Type your name")
        MsgBox("Hi, your name is " & name)
    End Sub

End Module
using System;

class SomeClass{

  public static void Main(){
    string name;    // A variable name of type string
    Console.WriteLine("Type your name");
    name = Console.ReadLine();
    Console.WriteLine("Hi, your name is " + name);
  }

}