**#include<stdio.h>**

**int main( )**

**{**

**int n, pow, i, j=1;**

printf("Enter the number and its power");

printf("Enter the number and its power");

**scanf("%d %d",&n,&pow);**

if(pow==0)

if(pow==0)

**printf("Result is 1");**

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

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

**{**

**j=j*n;**

**}**

if(pow>0)

if(pow>0)

**printf("Result is %d",j);**

return 0;

return 0;

}

}

## No comments:

## Post a Comment