/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 206 - Problem 3: Magic Number */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { int number, guess; number = 10; Console.Write("Guess the number: "); guess = int.Parse(Console.ReadLine()); if (guess == number) Console.WriteLine("\n\n\n\t\t\tBRAVO!!! You Win."); else if (guess > number) Console.WriteLine("\nYou lose, you're guess is BIG!"); else Console.WriteLine("\nYou lose, you're guess is SMALL!"); Console.ReadKey(); } } }