using System; using System.IO; using System.Linq; public class Kataloogid3{ public static void Main(string[] arg){ Console.WriteLine(string.Join("\n", Directory.GetFiles(".", "*.cs"). Select(fnimi => fnimi+" "+File.ReadAllLines(fnimi). Select(rida => rida.Split(new char[]{' '}).Length).Sum()) ) ); } }