Page 1 of 1

14. Write a function that returns a value when called based on a switch statement that evaluates a parameter passed to i

Posted: Sat May 14, 2022 7:46 pm
by answerhappygod
14 Write A Function That Returns A Value When Called Based On A Switch Statement That Evaluates A Parameter Passed To I 1
14 Write A Function That Returns A Value When Called Based On A Switch Statement That Evaluates A Parameter Passed To I 1 (28.81 KiB) Viewed 34 times
14. 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 o