title: How to square any non-integer number without pow() and multiplication?
body: <p>I want to replace pow with something other than multiplication. How can i do it?
  THIS PROGRAM SEARCHES FOR THE ROOT OF THE SUM OF SQUARES OF ENTERED NUMBERS:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  #define N 10000
  double norm2(double a[],int n);
  int main(void)
  {
      double a[N]; int n;
      scanf(&quot;%d&quot;,&amp;n);
      norm2(a,n);
      
      return 0;
  }
  double norm2(double a[],int n)
  {
      int i=0; double sum=0;
      for(i=0;i&lt;n;i++)
      {
          scanf(&quot;%le&quot;,&amp;a[i]);
          if(a[i]&lt;0.0) a[i]=-a[i];
          sum+=exp2(2*log2(a[i]));}
      printf(&quot;%le&quot;,sqrtf(sum));
      return 0;
      }
  </code></pre>