ты что пишешь:using System; class VideoSharp { static void Main() { string a = Console.ReadLine(); string b = Console.ReadLine(); Console.WriteLine(a.Length + " " + b.Length); } А надо так: string a = Console.ReadLine(); string b = Console.ReadLine(); Console.WriteLine(a.Length + " " + b.Length);