Use c language to print diamonds