Driver program to test above
int main ( ) { int n = 13 , m = 4 ; cout << closestNumber ( n , m ) << endl ; n = -15 ; m = 6 ; cout << closestNumber ( n , m ) << endl ; n = 0 ; m = 8 ; cout << closestNumber ( n , m ) << endl ; n = 18 ; m = -7 ; cout << closestNumber ( n , m ) << endl ; return 0 ; }