Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <complex.h>
- int main()
- {
- double complex z1 = 5.0 - 6.0 * I;
- double complex z2 = 3.0 + 4.0 * I;
- printf("The formula is (%.2f - %.2fi) / (%.2f + %.2fi) = ?\n",
- creal(z1),
- cimag(z1),
- creal(z2),
- cimag(z2));
- printf("The answer is %.3f + %.3fi", (z1)/(z2));
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement