Page 1 of 1

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
by answerhappygod
4 Write A Function That Returns A Value When Called Based On A Switch Statement That Evaluates A Parameter Passed To It 1
4 Write A Function That Returns A Value When Called Based On A Switch Statement That Evaluates A Parameter Passed To It 1 (29.26 KiB) Viewed 37 times
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