C# and WPF tutorial files
This commit is contained in:
29
C# Beginners/ConsoleApplication1/Program.cs
Normal file
29
C# Beginners/ConsoleApplication1/Program.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApplication1
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// Create a new instance of our number guesser class
|
||||
var numberGuesser = new NumberGuesser();
|
||||
|
||||
// Change the default maximum number to 200
|
||||
numberGuesser.MaximumNumber = 200;
|
||||
|
||||
// Ask the user to think of a number
|
||||
numberGuesser.InformUser();
|
||||
|
||||
// Discover the number the user is thinking of
|
||||
numberGuesser.DiscoverNumber();
|
||||
|
||||
// Announce the results
|
||||
numberGuesser.AnnounceResults();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user