Compare commits
No commits in common. "d117584a84dc0fcf7962fc806d2f20bdf43a5630" and "5681e86c746b46f57fa545f5d9f47e5eb3bdc88e" have entirely different histories.
d117584a84
...
5681e86c74
@ -1,8 +1,6 @@
|
|||||||
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);
|
||||||
|
|
||||||
@ -10,7 +8,7 @@ int guess;
|
|||||||
int trials = 0;
|
int trials = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
Console.Write(EnterValue);
|
Console.Write("Enter value: ");
|
||||||
guess = Convert.ToInt32(Console.ReadLine());
|
guess = Convert.ToInt32(Console.ReadLine());
|
||||||
|
|
||||||
if (guess > value)
|
if (guess > value)
|
||||||
|
Loading…
Reference in New Issue
Block a user