fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. using ll = long long;
  4.  
  5. int main() {
  6. ll taban, us;
  7. cin >> taban >> us;
  8. ll cevap = 1;
  9. for (ll i = 0; i < us; i++) {
  10. cevap *= taban;
  11. }
  12. cout << taban << "^" << us << " = " << cevap << "\n";
  13. }
Success #stdin #stdout 0.01s 5304KB
stdin
5 11
stdout
5^11 = 48828125