Advertisement
fahimkamal63

Confused

Apr 17th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4.  
  5. int main(){
  6.     int t; cin >> t;
  7.     while(t--){
  8.         int a, b;
  9.         cin >> a >> b;
  10.         int k;
  11.         k = pow(a, b);
  12.         cout << pow(a, b);
  13.         cout << endl << k ;
  14.     }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement