The definition of a(), b(), and sw() below achieve the same effect with different implementations: if else, nested if, and switch