using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
// Generate a range of number starting at 5.
// ... First parameter is the start number.
// Second parameter is the count of numbers (not the last index).
int min = 20, max = 30;
List<int> list = new List<int>();
List<int> list1 = new List<int>{ 23, 30,27 };
for (int i = min; i<= max; i++ )
list.Add(i);
foreach (int n in list)
Console.WriteLine(n);
}
var list3 = list.Except(list1).ToList();
Console.WriteLine("After cehck");
foreach (int n in list3)