using c language and do some exercise