title: Convert String to int in C#
body: <p>I am trying to write a simple program that asks the user to enter a number and then I will use that number to decide what the cost of the ticket will be for their given age. I am having trouble when trying to convert the string to int. Otherwise the program layout is fine. Any suggestions?
  thanks </p>
  
  <pre><code>using System;
  
  class ticketPrice
  {    
      public static void Main(String[] args)
      {
          Console.WriteLine("Please Enter Your Age");
          int input = Console.ReadLine();
          if (input &lt; 5)
          {
              Console.WriteLine("You are "+input+" and the admisson is FREE!");
          }
          else if (input &gt; 4 &amp; input &lt; 18)
          {
              Console.WriteLine("You are "+input+" and the admission is $5");
          }
          else if (input &gt; 17 &amp; input &lt; 56)
          {
              Console.WriteLine("You are "+input+" and the admission is $10");
          }
          else if (input &gt; 55)
          {
              Console.WriteLine("You are "+input+" and the admission is $8");
          }
      }
  }
  </code></pre>