Generation

generate functionTue, 15 Nov 2022

we have a list and take out the odd numbers

static IList<int> OddNumbers(List<int> lst) { return lst.Where(x => x % 2 == 1).ToList<int>(); }

Want to kickstart your project?Use the new AI Studio to create your code