#include <stdio.h>
#include <conio.h>
void main()
{
int i,base,index,power=1;
clrscr();
printf("Enter the base and index");
scanf("%d%d",&base,&index);
for(i=0;i<index;i=i+1)
{
power=power*base;
}
printf("%d",power);
getch();
}
#include <conio.h>
void main()
{
int i,base,index,power=1;
clrscr();
printf("Enter the base and index");
scanf("%d%d",&base,&index);
for(i=0;i<index;i=i+1)
{
power=power*base;
}
printf("%d",power);
getch();
}