Success rate rounds to zero

Code reviewMedium20 min

Your task

Review this Go function that computes a success rate as an integer percentage.