Ilya_konstantinov

bin_pow

Jul 21st, 2025
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | Source Code | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include "func.h"
  4. using std::cin;
  5. using std::cout;
  6.  
  7. int main() {
  8.   long double n; int a;
  9.   cin >> n >> a;
  10.   cout << std::fixed << std::setprecision(4) << pow(n, a) << std::endl;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment