Driver Code
public static void Main ( ) { int L = 1 , R = 1000 ; K = 3 ; Console . WriteLine ( countInRange ( R ) - countInRange ( L - 1 ) ) ; L = 9995 ; R = 10005 ; K = 2 ; Console . WriteLine ( countInRange ( R ) - countInRange ( L - 1 ) ) ; } }