/*********************************************************************** * complex-number.c * * Source code to accompany the UW ACM Unix tutorial * Questions to hctang@cs **********************************************************************/ #include typedef struct { double real; double imag; } Complex; int main(void) { Complex c1, c2, result; printf("Please enter two Complex numbers (a + b i)"\n); printf("a1: "); scanf("%lf", &c1.real); printf("b1: "); scanf("%lf", &c1.imag); printf("a2: "); scanf("%lf", &c2.real); printf("b2: "); scanf("%lf", &c2.imag); }