using System; class NizUJednomRedu { static void Main() { Console.Write("Niz brojeva razdvojenih zarezima -> "); string red = Console.ReadLine(); string[] brojevi = red.Split(','); int max = int.Parse(brojevi[0]); foreach(string s in brojevi) { int k = int.Parse(s); if(k > max) { max = k; } } Console.WriteLine("Njihov max -> {0}", max); } }