C solution of some exersize found around