Hi,

I am stuck with this very basic problem that I am unable to resolve. Here is a piece of code that I am working on:

Module Module1
Sub Main()
Console.Write("Enter Age, Name Salary: ")
Age = Console.Read()
FirstName = Console.Read()
Salary = Console.ReadLine()
Console.WriteLine(Age & " " & FirstName & " " & Salary)
End Sub
End Module

At the command prompt I enter the following values

20 Ann 20000

and it gives me an InvalidCastException

Could you explain what kind of input would be suitable to make this run???