better translation

This commit is contained in:
Marcin Badurowicz 2024-10-14 10:13:19 +02:00 committed by marcinb
parent 5681e86c74
commit 6238f8c024

View File

@ -1,6 +1,8 @@
using System.Text.Json; using System.Text.Json;
using Lab1; using Lab1;
const string EnterValue = "Enter value:";
var rand = new Random(); var rand = new Random();
var value = rand.Next(1, 100); var value = rand.Next(1, 100);
@ -8,7 +10,7 @@ int guess;
int trials = 0; int trials = 0;
do do
{ {
Console.Write("Enter value: "); Console.Write(EnterValue);
guess = Convert.ToInt32(Console.ReadLine()); guess = Convert.ToInt32(Console.ReadLine());
if (guess > value) if (guess > value)