Driver Code
$ n = 13 ; $ m = 4 ; echo closestNumber ( $ n , $ m ) , " STRNEWLINE " ; $ n = -15 ; $ m = 6 ; echo closestNumber ( $ n , $ m ) , " STRNEWLINE " ; $ n = 0 ; $ m = 8 ; echo closestNumber ( $ n , $ m ) , " STRNEWLINE " ; $ n = 18 ; $ m = -7 ; echo closestNumber ( $ n , $ m ) , " STRNEWLINE " ; ? >