Prints every Kth element from an array. The code takes input from the user, first the length of the array, then the actual values to be stored in the array, and lastly the value for k.
Prints every Kth element from an array. The code takes input from the user, first the length of the array, then the actual values to be stored in the array, and lastly the value for k.