Write an algorithm to print the first 20 odd numbers in ascending order
Answers
Answered by
1
Answer:
Input : arr[] = {1, 2, 3, 5, 4, 7, 10}
Output : arr[] = {7, 5, 3, 1, 2, 4, 10}
Input : arr[] = {0, 4, 5, 3, 7, 2, 1}
Output : arr[] = {7, 5, 3, 1, 0, 2, 4}
Explanation:
Similar questions