Complex number:
Example :
2+3i
0+4i
-1-9i
These kind of number are known as complex number.
where 'i' is root -1.
Syntax-
a+bi
where,
'a' is the real part of the complex number
'b' is the imaginary part of the complex number.
Negation of complex number:
x=3+4i
then negation is 3-4i
program-
#include< stdio.h>
int main() {
int r,i;
printf("Enter real and imaginary part of complex number\n");
scanf("%d%d",&r,&i);
printf("Complex number is %d+%di",r,i);
printf("Negation is %d-%di",r,i);
}
Enter real and imaginary part of the complex number
3
4
Complex number is 3+4i
Negation is 3-4i