Tuesday 28 October 2008

Small Basic: Hello World

So I've been messing around with Small Basic, it really is bringing me back to my childhood.

So I create a quick little console application which prompts for your name and says hello.  I also mess around with some color's.  I love it.

Code is Below

TextWindow.Write("Please enter your name: ")
myName = TextWindow.Read()
TextWindow.WriteLine("")
TextWindow.ForegroundColor = "Green"
TextWindow.WriteLine("Hello " + myName)
TextWindow.WriteLine("")
TextWindow.ForegroundColor = "White"

No comments: