#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<math.h>
void main()
{
int x,y,i;
long power=1;
clrscr();
cout<<"Enter first value,x = ";
cin>>x;
cout<<"Enter second value,y = ";
cin>>y;
for(i=1;i<=y;i++)
power=power*x;
cout<<"\nx to the power y = "<<power;
getch();
}
////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........