A complex number a + bi can be handled as a composite of two real numbers (real part a and imaginary part b).

Write a program that is able to read and print real numbers and stores them into an appropriate datastructure. The output should be formatted as a + bi, but you can ask for the real and imaginary part separately.

Write a function that takes a complex number as an argument and returns its absolute value.

Experts: write functions to add and multiply complex numbers. Also, accept input in the shape of a + bi.

###Hints###

You have to pass a complex number as an parameter.

Experts: you are fine using fgets, then take a look at sscanf of strtod.

##Solution##

coming soon.