Switch Case Algorithm Example Math