SHARE
TWEET

Untitled

a guest Jan 18th, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <algorithm>
  3. #include <iostream>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. int cd(int a, int n) {
  8.     for (int i = 0; i < n; ++i) {
  9.         a = a * a;
  10.     }
  11. }
  12. int main() {
  13.     int a;
  14.     cin >> a;
  15.     int n;
  16.     cin >> n;
  17.     cd(a, n);
  18.     cout << a;
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top