Introduction to C# - slide 24 : 43 |
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); } }