conversion using c language