User input/Text is part of Short Circuit's Console Program Basics selection.
Task
 
Input a string and the integer   75000   from the text console.

See also: User input/Graphical

 
class Main
{
  public static Void main ()
  {
    Env.cur.out.print ("Enter a string: ").flush
    str := Env.cur.in.readLine
    echo ("Entered :$str:")
    Env.cur.out.print ("Enter 75000: ").flush
    Int n
    try n = Env.cur.in.readLine.toInt
    catch (Err e) 
    {
      echo ("You had to enter a number")
      return
    }
    echo ("Entered :$n: which is " + ((n == 75000) ? "correct" : "wrong"))
  }
}
 