Solved problems 1-5 in the programming language C (using C99).

Signed-off-by: Sebastian Sura <s.sura@hotmail.de>