Write a program using function to read an array from the user and print the odd number at odd position

a) Write a program using function to read an array from the user and print the odd number at odd position and prints the even numbers at even positions. For example input array is 1 2 3 4 and output is 2 1 4 3.


Leave a Reply