Varianta 1 -> cu functia pow din math.h
#include<iostream.h>
#include<math.h>
using namespace std ;
int main (){
float x ;
int n;
cin>>x>>n;
cout << pow(x,n);}
Sau varianta 2
#include<iostream.h>
using namespace std ;
int main (){
int i , int n ;
float x , putere=1;
cin>>x>>n;
for(i=1;i<=n;i=i*2)
putere=putere*x;
cout<<putere ;}