Some algorithm Exercise in C language.