version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next

  • Section: Combining the question and prompt
    We can combine the question and the prompt. To do so, we set the current question to a blank string and the question prompt to the question that we want to ask:
        now current question is "";
        now current prompt is "What is your name? >";
        ask a closed question, in text mode.