際際滷

際際滷Share a Scribd company logo
COLLECTING USER INPUT

   THE JOY OF READLINE()
Using ReadLine()
Module Module1
                                                        ReadLine()
                                                    collects the users
    Sub Main()
                                                     response from
                                                       the console
        Dim name As String
        name = "Dave"

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

        Console.ReadLine()

                                            What name is
    End Sub
                                            presented will
End Module
                                              depend on
                                            what name is
                                               entered

More Related Content

Collecting user input

  • 1. COLLECTING USER INPUT THE JOY OF READLINE()
  • 2. Using ReadLine() Module Module1 ReadLine() collects the users Sub Main() response from the console Dim name As String name = "Dave" Console.WriteLine("What is your name?") name = Console.ReadLine() Console.WriteLine("hello " & name & " !") Console.ReadLine() What name is End Sub presented will End Module depend on what name is entered