C language solutions