Write a program to initialize an array with any 10 numbers and create the numbers in the odd position
Answers
Answered by
0
arr = [A, B,C, D, E,F, G,H,I,J]
print("These elements are at odd position in the array: ")
for i in range(0, len(arr), 2):
print(arr[i])
These elements are at odd position in the array:
A
C
E
G
I
Similar questions