Microsoft Small Basic由Microsoft DevLabs所設計,在2008年10月以技術預覽〈Technology Preview〉方式發佈[5]。它的目標是使任何人,无论兒童或成人,都能够开始学习程式設計。
TextWindow.Write("Hello World")
TextWindow.Writeline("Hello World")
TextWindow.Write("Enter the temperature today (in F): ")
temp = TextWindow.ReadNumber()
If temp > 100 Then
TextWindow.WriteLine("It is pretty hot.")ElseIf temp > 70 Then
TextWindow.WriteLine("It is pretty nice.")ElseIf temp > 50 Then
TextWindow.WriteLine("Don't forget your coat.")Else
TextWindow.WriteLine("Stay home.")
EndIf
TextWindow.WriteLine("Multiplication Tables")table = 4
For i = 1 to 10
TextWindow.WriteLine(i + " x " + table + " = " + table * i)
EndFor
For i = 1 to 4
Turtle.Move (100)
Turtle.TurnRight()
EndFor