From 6238f8c024496b19fdf321472049c2edc26c2850 Mon Sep 17 00:00:00 2001 From: Marcin Badurowicz Date: Mon, 14 Oct 2024 10:13:19 +0200 Subject: [PATCH] better translation --- Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 284b66b..14ce687 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,8 @@ using System.Text.Json; using Lab1; +const string EnterValue = "Enter value:"; + var rand = new Random(); var value = rand.Next(1, 100); @@ -8,7 +10,7 @@ int guess; int trials = 0; do { - Console.Write("Enter value: "); + Console.Write(EnterValue); guess = Convert.ToInt32(Console.ReadLine()); if (guess > value) -- 2.45.2