4. Write a function that returns a value when called based on a switch statement that evaluates a parameter passed to it
Posted: Sat May 14, 2022 7:34 pm
4. Write a function that returns a value when called based on a switch statement that evaluates a parameter passed to it. The value returned is determined by the case that it matches: (10 points) If value is: 1 return 10 2 return 20 3 return 30 Anything else, return 0 I