Compare commits
2 Commits
94035f164e
...
6238f8c024
Author | SHA1 | Date | |
---|---|---|---|
|
6238f8c024 | ||
5681e86c74 |
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
@ -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