arithmetic progression in c language