fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. ios_base::sync_with_stdio(0);
  7. cin.tie(0);
  8. cout.tie(0);
  9.  
  10. int a, b;
  11. int wynik= 1;
  12. cin >> a >> b;
  13.  
  14. for(int i=0; i < b; i++) {
  15. wynik = wynik*a;
  16. }
  17. cout << wynik;
  18.  
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 5324KB
stdin
0 0

stdout
1