Demo entry 6363200

c

   

Submitted by zwp on May 12, 2017 at 14:52
Language: C++. Code size: 260 Bytes.

#include"complex1.cpp"

int main()
{
    Complex z1(3,4);
    Complex z2(4,9);
    Complex z3;
    z3=z1.sum(z2);
    z3.Display();
    z3=z1.sub(z2);
    z3.Display();
    z3=z1.mul(z2);
    z3.Display();
    z3=z1.div(z2);
    z3.Display();

    return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).