title: How do I pass parameters and results to/from a subprogram in TI-basic
body: <p>I have a program called FACTORS that prompts for an input value, and computes and displays a list of all the factors of that input number.</p>
  
  <p>Now I want to write another program that calls FACTORS a couple of times and then loops through the lists of factors.</p>
  
  <p>So I want to be able to do something like</p>
  
  <pre><code>prompt A
  prgmFACTORS(A) -&gt; L1
  </code></pre>
  
  <p>How can I re-write my FACTORS program to take a passed in parameter instead of prompting for it, and pass the list as output to the calling program instead of displaying it?</p>
  
  <p>I'm using a TI-Nspire in TI-84 Plus mode.</p>