using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main(string[] args)
Console.WriteLine("Welcome to everyone in this programme");
int [] my_ints_1 = new int[] { 99, 98, 92, 97, 95, 91, 90, 96, 1 ,2, 3, 4 ,5 ,6 ,0, 7, 8 ,9 ,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};
int [] my_ints_2 = new int[] { 90, 96, 1 ,2, 3, 4 ,5 ,6 ,0, 7, 8 ,9 ,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36};
int [] my_ints_3 = new int[] {4 ,5 ,6 ,0, 7, 8 ,9 ,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,38,39,40,41};
foreach (int i in my_ints_1)
foreach (int i in my_ints_2)
foreach (int i in my_ints_3)
Console.WriteLine("#####################");
Console.WriteLine("### About List 1 ####");
Console.WriteLine("#####################");
Console.WriteLine("#####################");
Console.WriteLine("### About List 2 ####");
Console.WriteLine("#####################");
Console.WriteLine("#####################");
Console.WriteLine("### About List 3 ####");
Console.WriteLine("#####################");
Console.WriteLine("#####################");
Console.WriteLine("### Intersection ####");
Console.WriteLine("#####################");
PrintIntersection(list1,list2,list3);
Console.WriteLine("Please press any key to continue...");
public static void DoPrintings(DLL list){
PrintNumbersInReverse(list);
public static void PrintSize(DLL list){
Console.WriteLine("Size of the list is :"+list.size);
public static void PrintMiddleNumber(DLL list){
Console.WriteLine("Approx Middle Number is:"+list.middle.Value);
public static bool isPrime(int num){
for(int i = 2; i <= num / 2; i++) {
public static void PrintPrimeNumbers(DLL list){
Console.WriteLine("**** Prime Numbers Begin ****\n");
Console.WriteLine("\n**** Prime Numbers End***\n");
public static void PrintNumbersInReverse(DLL list){
Console.WriteLine("**** Numbers in Reverse Begin ***\n");
Console.WriteLine("\n**** Numbers in Reverse End ***\n");
public static void PrintIntersection(DLL list1, DLL list2, DLL list3){
Console.Write(n1.Value+",");
public static void Readfile(string file)
string[] filecontents = System.IO.File.ReadAllLines(file);
foreach (string line in filecontents)
public Node(string filename)
this.filename = filename;
public Boolean isEmpty(){
public Node addtoHead(int i)
public Node addToTail(int i)
public bool FindStuff(int item)
Console.WriteLine("My List");
Console.Write(temp.Value + ",");