title: Find x^y using While statement
body: <p>Please help me to solve this:</p>
  
  <p>Using while statement write a C++ program that prompt the user to input two numbers (x, y) then find x^y.</p>
  
  <p>Sample Run:</p>
  
  <p>Please enter the values of x and y</p>
  
  <p><strong>7</strong></p>
  
  <p><strong>0</strong></p>
  
  <p>7 ^ 0 = 1</p>
  
  <p>Please enter the values of x and y</p>
  
  <p><strong>5</strong></p>
  
  <p><strong>6</strong></p>
  
  <p>5 ^ 6 = 15625</p>
  
  <p>P.S no pow statement please.
  i did it with power statement (its easy) but i need it without the pow statement
  thats what i did</p>
  
  <p>int counter,x,y,ttl;
      counter = 0;</p>
  
  <pre><code>while (counter == 0){
      cout &lt;&lt; "Please enter the values of x and y ";
      cin &gt;&gt; x &gt;&gt; y;
      ttl = pow(x,y);
  
      counter++;
  }
  cout &lt;&lt; x &lt;&lt; " ^ " &lt;&lt; y &lt;&lt; " = " &lt;&lt; ttl ;
  </code></pre>