Add project files.
This commit is contained in:
11
Guessing Game/Guessing Game.csproj
Normal file
11
Guessing Game/Guessing Game.csproj
Normal 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
19
Guessing Game/Program.cs
Normal 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());
|
||||
Reference in New Issue
Block a user