C#: Create a new array of given length using the odd numbers from a given array of positive integers
Array of Odd Numbers from Given Length
Write a C# Sharp program to create an array of given length using odd numbers from a given array of positive integers.
Visual Presentation:

Sample Solution:
C# Sharp Code:
Sample Output:
New array: 1 3 5
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to check a positive integer and return true if it contains a number 2.
Next: Write a C# Sharp program to create a new list from a given list of integers where each element is multiplied by 3.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.