Simple exercises done in C/C++