I need to use the pow() function here so that m and n are integers and n in nonegative, the cal pow(m,n) returns m raised to the nth power: I need to use the following code:

product = 1;

for (i = 1; i< = n; ++i)

prooduct *= m;

Here is what i have come up with so far. Can anyone get get me to solve this problem, please.

#include<stdio.h>

#include<math.h>

int main(void)

{

double m, n, i, product;

printf("\n%s\n%s\n%s\n\n",

"Input m as a positive integer and n as a negative integer.",

"The square root of m and n raised",

"to the n power will now be computed.");

while (0)

scanf("%lf", &n);

product = 1;

for (i = 1; i <= n; ++i)

product *= m;

printf("\n%lf", m);

return 0;

}