Advertisement
Guest User

степень

a guest
Apr 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. double power (double a, int n)
  7. {
  8. int f;
  9. f = pow (a, n);
  10. return f;
  11. }
  12. int main ()
  13. {
  14. int a, n;
  15. cin >> a >> n;
  16. cout << power (a, n) << endl;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement