fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,x,i;
  6. cin>>n>>x;
  7. for(i=1;i<=n;i++)
  8. x=x*x;
  9. cout<<x;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 4400KB
stdin
3
2
stdout
256