Add project files.

This commit is contained in:
Dan
2025-05-04 22:09:04 -04:00
parent f89443397b
commit e244e369b6
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Guessing_Game</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

19
Guessing Game/Program.cs Normal file
View File

@@ -0,0 +1,19 @@
Console.Title = "Dan's First Guessing Game";
Console.Clear();
// User Entered Data
int maxGuesses;
int lowestNumber;
int highestNumber;
int theGuess;
// Internal Data
int guessNumber=0;
int randomNumber;
Console.Write("How many guesses would you like: ");
maxGuesses = Convert.ToInt32(Console.ReadLine());
Console.Write("What's the lowest number: ");
lowestNumber = Convert.ToInt32(Console.ReadLine());
Console.Write("What's the lowest number: ");
highestNumber = Convert.ToInt32(Console.ReadLine());