C Programming
Computer Programming

Program in c to Calculate the power of a given number



Write a Program in c to Calculate the power of a given number

\* C Program to to Calculate the power of a given number *\

# include < stdio.h >
int   main( )
{

int   num, n, i, pow=1  ;
printf(" Enter the Number : ") ;
scanf("%d ", & num) ;
printf("\n Entred the Power : ") ;
scanf("%d ", & n) ;
for (   i = 1;   i <= n ;   i++  ) ;
{

pow = pow * num ;

}
printf("\n Power of entred Number is : ") ;
printf("%d ", & pow)) ;
return ( 0 ) ;

}

Output of Program :

Output of Program in C to Calculate the power of a given number