Merge pull request 'better translation' (#1) from translation2 into master
Reviewed-on: #1
This commit is contained in:
commit
d117584a84
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user