Some exercises in C executed by a beginner