#include <iostream> #include <complex> using namespace std; int main() { complex<int> num(4, 5); num = num * 7 / 4; cout << num; return 0; }
We are multiplying the complex number by 4.
Previous Question Next Question
Your comments will be displayed only after manual approval.