40. Set Threshold

 Your task is to overload a function setThreshold in two ways:

  • void setThreshold(int x) → sets the threshold using an integer.
  • void setThreshold(double x) → sets the threshold using a floating-point number.
     

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

Output:

Threshold set to 3.75

 

Loading...

Input

50

Expected Output

Threshold set to 50