C program to print the kth element in the array

C program to print the kth element in the array

Input:

Enter the size of the array:
10
Enter the elements of the array:
45 12 75 34 68 1 69 78 2 4
Enter 'k' to find 'kth' element in the array:
4

Output:

4th element in the array is 34

Implementation: