Collecting user input

2

Click here to load reader

Transcript of Collecting user input

Page 1: Collecting user input

COLLECTING USER INPUT

THE JOY OF READLINE()

Page 2: Collecting user input

Using ReadLine()Module Module1

Sub Main()

Dim name As String name = "Dave"

Console.WriteLine("What is your name?") name = Console.ReadLine() Console.WriteLine("hello " & name & " !")

Console.ReadLine()

End Sub

End Module

What name is presented will

depend on what name is

entered

ReadLine() collects the users

response from the console