Our next contest is:
April 15, 2008
Console.Read(): reads the next character from standard input
Example:
Dim s as Integer
Dim c as Char
s = Console.Read()
c = Console.Read()
Upon execution, if input is the number "10", then s will contain the value 1 and c the numeral '0'
Console.Readline(): reads characters from standard input until the next carriage return is encountered
Example:
Dim s as Integer
s = Console.ReadLine()
Upon execution, if input it the number "10" followed by a carriage return, then s will contain the value 10
Console.Write(value): outputs the value (which may be any type) to the standard output device without leaving the cursor on the same line as the output at the end; subsequent characters displayed to standard output will appear on the same line as this output
Console.WriteLine(value): outputs the value (which may be any type or empty) to the standard output device then advances to the next line at the end; subsequent characters displayed to standard output will appear on the next line after this output