coding exercises in C/C++