Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Exm
//gcc 7.4.0 #include <stdio.h> struct complex { int real, img; }; int main() { struct complex a, b, c; printf("Enter a and b where a + ib is the first complex number.\n"); scanf("%d%d", &a.real, &a.img); printf("Enter c and d where c + id is the second complex number.\n"); scanf("%d%d", &b.real, &b.img); c.real = a.real + b.real; c.img = a.img + b.img; printf("Sum of the complex numbers: (%d) + (%di)\n", c.real, c.img); return 0; }
run
|
edit
|
history
|
help
0
141128_EjemploChorraArray
Array Incrementing by 1
Hello
Random test
Project 3 part 2 Book v10.2
18BCE2182 ASSESS_2 Q1
Run code before/after main in C (GCC)
Area of the Cone
swapping using call by reference
What happens if you do a system() in rextester...