Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c,d,e,ch;

clrscr();

printf("enter 1st no\n");

scanf("%d",&a);

printf("2nd no\n");

scanf("%d",&b);

priintf("enter choice 1.add 2.sub 3.mul\n");

scanf("%d",&ch);

switch(ch)

case 1:

c=a+b;

printf("%d",c);

break;

case 2:

d=a-b;

printf("%d",d);

break;

case 3:

e=a*b;

printf("%d",e);

break;

}

getch();

}

Q: Write a c Program to add subtract multiply and divide the two complex numbers?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

Take a look at the Windows Calculator.

-137

-10015

Multiply two odd numbers Add an even and an odd Subtract an odd and an even

add, subtract, multiply, divide

Related questions

Take a look at the Windows Calculator.

-137

you divide and divide again then multiply then add then subtract then finally get the root

-10015

Multiply two odd numbers Add an even and an odd Subtract an odd and an even

Usually you don't use pure imaginary numbers, but complex numbers - numbers that have a real and an imaginary part. To add and subtract complex numbers, you add and subtract the components (just like any other vector). That is, you add (or subtract) the real part and the imaginary part separately. To multiply them, you multiply the components, just like you would multiply any two polynomials - multiply each part of the first number by each part of the second number. Remember that i2 = -1. Combine the real and the imaginary parts. To divide, consider the division as a fraction, and multiply top and bottom by the complex conjugate. For example, if you are dividing by (2 + 3i), multiply numerator and denominator by (2 - 3i). This will convert the denominator into a real number. Another way to multiply is to convert the complex numbers into polar coordinates (absolute value, i.e., length, and angle). Multiply the absolute values (which are real numbers) together, and simply add the angles. For example, (3 angle 30Â°) x (4 angle 20Â°) = (12 angle 50Â°). You may need to convert the result back to rectangular coordinates in the end. Note that scientific calculators usually have an option to quickly convert from rectangular to polar, or polar to rectangular, coordinates.

Add, subtract, multiply and divide.

add, subtract, multiply, divide

41

69

If you add, subtract or multiply rational numbers, the result will be a rational number. It will also be so if you divide by a non-zero rational number. But division by zero is not defined.

Homework question: The first numbetr is 4. A rule is multiply by 2 and then subtract 3. What are the first 6 numbers in the pattern