Check whether the number is odd or not in List.

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 1685
Check whether the number is odd or not in List.
List<int> dnfnum = new List<int>{17,59,10};
List<int> dnfoddNum = dnfnum .where(n => n % 2 == 1).ToList();

Comments or Responses

Login to post response