Your task is to overload a function setThreshold in two ways:
setThreshold
void setThreshold(int x)
void setThreshold(double x)
The program will call the correct version based on the input. You only need to implement the two overloaded functions.
Example Input:
50
Output:
Threshold set to 50
Input:
3.75
Threshold set to 3.75
Test Cases
Test Results
Input
Expected Output