TextWindow.Write("Enter a number: ")
n = TextWindow.ReadNumber()

If (Math.Remainder(n,2)=0) Then
  TextWindow.WriteLine("The number is Even.")
Else
  TextWindow.WriteLine("The number is Odd.")
EndIf
