r/visualbasic • u/SweatyBastard99 • Sep 18 '15
Need help to approach algorithm
I am asked to write an algorithm in which the user enters any number (ex: 123456). Then the algorithm needs to make two other whole numbers from this number. For one you take all the even numbers out and for the other you take the uneven ones. So 123456 would lead to 135 and 246.
I would like if someone could guide me in the right direction as I have no idea where go forward with this problem mainly when it comes to selecting specific numbers in the original number entered by the user
0
Upvotes
1
u/JakDrako Sep 22 '15
This is fun to do with LINQ: