title: Power function in a loop
body: <p>I need help with writing power function. So, I need to write a porogramm, that will output a table from 1 to 10 in a power in a LOOP. NOT USING POW or EXP
      Example of output:</p>
  
  <pre><code>0^0 == 1
  1^1 == 1
  2^2 == 4
  3^3 == 27
  4^4 == 256
  (and so on, up to)
  10^10 == 10000000000
  </code></pre>
  
  <p>NOT USING Cmath (NO POW or EXP)</p>
  
  <p>for example: </p>
  
  <p>e.g. power( 3.0, 5 ) will return 243 because 3*3*3*3*3 is 243
  e.g. power( 173, 0 ) will return 1 because any number raised to the power of 0 is 1.</p>
  
  <p>I did this Simple loop, But I have no idea how to insert power formula in it. I was also thinking about while loop</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std; 
  
  int main(){
  
      int number = 0, tot;
  
      for (int table = 0; table &lt; 10; table++)
      {
          tot = number * table;
          cout &lt;&lt; tot &lt;&lt; endl;
          number++;
      }    
  }
  </code></pre>