#include<stdio.h> |
void
main() |
{ |
int i,x,y,pow=1; |
printf("\n Enter the
Base : "); |
scanf("%d",&x); |
printf("\n Enter the
Index : "); |
scanf("%d",&y); |
for(i=1;i<=y;i++) |
{ |
pow=pow*x; |
} |
printf("\n %d^%d = %d",x,y,pow); |
} |