using System; namespace laba1 { class Program { static void Main(string[] args) { var answer = new Random().Next(100); var guess = int.Parse(Console.ReadLine()); var triesLeft = 7; while (guess != answer) { Console.WriteLine($"Too {(guess < answer ? "small":"big")}"); Console.WriteLine($"You have {triesLeft} tries left."); guess = int.Parse(Console.ReadLine()); if (triesLeft-- == 0) { Console.WriteLine("You lost."); return; } } Console.WriteLine("You win"); } } }