typedef struct 
{
  float re;
  float im;
} complex;

void display(complex x)
{
  printf(ā€œ(%f + j%f)\nā€, x.re, x.im);
}

int main(void)
{
  complex a = {1.2, 2.5};
  complex b = {3.7, 4.0};

  display(a);
  display(b);
}