Small Basic
Simple Unit Converter
The Code
TextWindow.ForegroundColor = "Red"
TextWindow.WriteLine("Heyyyaaaa I'm a simple unit converter")
TextWindow.WriteLine("Enter the distance in miles")
miles = TextWindow.ReadNumber()
Km = miles/5 * 8
TextWindow.WriteLine("Miles in kilometres is " + Km)
TextWindow.WriteLine("Let's start again")
For Km = 0.1 To 10
If Math.Remainder(0.2) = 1 Then
Else
TextWindow.WriteLine("Kilometres in Miles is " + Miles)
EndIf
EndFor
Explanation
TextWindow.ForegroundColor = "Red"
:- This changes the text colour when you run the code.
TextWindow.WriteLine("Heyyyaaaa I'm a simple unit converter")
:- "TextWindow.WriteLine" is what comes up on your screen when you run the code