Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ppp
//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
Please
log in
to post a comment.
thermal_containers
Witout goto
String manipulation
open(): No such file or directory
709 lab 3.2
CharacterInput
Fallo matriz
18BCE2182 MIDTERM PART-B CRITICAL
150114_MatrizSumaPerimetro
ele888 lab1 run - graphs
Please log in to post a comment.