//compiler options: /t:exe /reference:Liste.dll using System; using static ListInt; class Palindrom { static void Main() { ListInt p = null; while(true) { string s = Console.ReadLine(); if(s == "kraj") { break; } int n = int.Parse(s); p = new ListInt(n, p); } ListInt r = ListInt.Rev(ListInt.Copy(p)); if(ListInt.Equal(p, r)) { Console.WriteLine("Lista je palindrom"); } else { Console.WriteLine("Lista nije palindrom"); } } }