Plaster

csharp
namespace NumberCheck { class Program { static void Main(string[] args) { //Asking for a number, also converting it to an integer Console.Write("Please enter a number: "); var userInput = Convert.ToInt32(Console.ReadLine()); if (userInput >= 1 && userInput <= 10) { Console.WriteLine("You typed: {0}", userInput); } else { Console.WriteLine("You typed: {0}\n Invalid number!", userInput); } Console.Write("Please enter a number: "); var firstNum = Convert.ToInt32(Console.ReadLine()); Console.Write("Please enter a second number: "); var secondNum = Convert.ToInt32(Console.ReadLine()); if (firstNum > secondNum) { Console.WriteLine("{0} is bigger than {1}", firstNum, secondNum); } else { Console.WriteLine("{1} is bigger than {0}", firstNum, secondNum); } } } }