title: displaying list of powers program
body: <p>I really need help with creating a program that displays a list of powers </p>
  
  <p>here is the input and the output:</p>
  
  <p>Input to the application is to include numbers to represent the following:</p>
  
  <p>base
  exponent (between 1 and 10)</p>
  
  <p>Output is to list the number that you entered as a base and find the powers for that base from 1 up to the ending exponent number that is input.</p>
  
  <p>I'm almost done the program, but the problem is that the program only calculate the base to the power without listing a list of powers.</p>
  
  <p>I know i'm missing something in my loop
  here is my code</p>
  
  <pre><code>double baseIn, exponentIn;
  
  baseIn = Integer.parseInt(txtBase.getText());
  exponentIn = Integer.parseInt(txtExponent.getText());
   //  power = (int) Math.pow(baseIn, exponentIn);
  
  for (int i = 1; i &lt;= exponentIn; i++) {
      txtArea.setText(Integer.toString((int) baseIn)+ "to the power of " + i + "=" + Math.pow(baseIn, i) );
  
  }
  </code></pre>