kananasgarli90

2^k + 2^n

Oct 17th, 2020
555
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int k, n;
  8.     cin>>k>>n;
  9.     long long cavab = pow(2, k) + pow(2, n);
  10.     cout<<cavab<<endl;
  11. }
  12.  
RAW Paste Data