Below is a Go program that takes as an input three int values; these values are further read in the hidden function hiddenValuesHandler() and returned as a result.
Your task is to use the defer statement with an anonymous function to check the three resulting values following these rules:
- The value of the variable
num1must be in the range from 0 to 100 ([0, 100]); - The value of the variable
num2must be a positive number (num2 > 0); - The value of the variable
num3must be an even number.
Finally, depending on the result of checking each variable, your program should print OK or ERROR.