Trying to determine if my list of integer is made of odd or even numbers, my desired output is a list of true an/or false. Can I perform the following operation on the list
Just use the modulus
loop through the list and run the following on each item
if(num % 2 == 0) { //is even } else { //is odd }
Alternatively if you want to know if all are even you can do something like this:
bool allAreEven = lst.All(x => x % 2 == 0);