Advertisement
Dprogrammed1

cplus

Apr 1st, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.     #include <complex>
  3.     using namespace std;
  4.     int main()
  5.     {
  6.        complex<double> c1(4.0, 16.0), c2;
  7.        c2 = pow(c1, 2.0);
  8.        cout << c2;
  9.        return 0;          
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement