Pow function in C outputting strange values
<p>I am having trouble using the pow function in c. The following code:</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;math.h&gt;  

int main(int argc, char **argv) 
{
    double t;
    for(t = 2; t &lt;= 7; t++)
    {
        double num = pow(7,t);
        printf("pi(%d) =",  pow(7,t));
    }
}
</code></pre>

<p>outputs:</p>

<pre><code>pi(1075576832) =pi(807) =pi(431) =pi(53) =pi(701) =pi(323)
</code></pre>

<p>instead of outputting <code>pi(49) = pi(7^3) =</code> and so on.</p>

<p>Any help would be much appreciated. </p>