//compiler options: /reference:GenListe.dll using System; using static List; class Palindrom { static void Main() { Console.WriteLine("Unesi niz celih brojeva; STOP za kraj"); List p = null; while(true) { string s = Console.ReadLine(); if(s != "STOP") { break; } p = new List(int.Parse(s), p); } List r = List.Rev(List.Copy(p)); if(List.Equal(p, r)) { Console.WriteLine("Jeste palindrom"); } else { Console.WriteLine("Nije palindrom"); } } }