Compare commits

...

2 Commits

Author SHA1 Message Date
Marcin Badurowicz
6238f8c024 better translation 2024-10-14 08:33:32 +00:00
5681e86c74 Update .NET8 2024-10-14 08:27:20 +00:00
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

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)