I'm trying to do exponent in c, but this is what is get : <p>I'm trying to do a example of exponent en " DEV C++ " compilator and I can't get the output </p>

<p>this is the code :</p>

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

int main (void)
{
    double base, exponent, result;

    printf("La base:\n");
    scanf("%lf",&amp;base);
    printf("El exponente:\n");
    scanf("%lf",&amp;exponent);

    result = pow(base, exponent);

    printf("%.1lf^%.1lf = %.21f",  base, exponent, result);

    return 0;       
}
</code></pre>

<p>and i get this :</p>

<p><a href="https://i.stack.imgur.com/BQ4Ps.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BQ4Ps.png" alt="exponent"></a></p>

<p>what could be the problem ?</p>

<p>Sincerilly,
NIN.</p>
