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