better translation #1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user