title: C# , How to have code wait for user input before moving on to do Math
body: <p>Hi I am in the process of Learning C#, trying to write a short Console Program that will take a users age and convert it into dog years.</p>
  <p>The issue I am having is it doesn't wait for the user input, so it assigns 0 as the value then returns 0 (because 0*7 = 0 ) for dog Age</p>
  <p>How do I get the code to stop running until the user enters a value</p>
  <p>My code :</p>
  <pre><code>Console.WriteLine(&quot;what is your age?&quot;);
  string humanAge = Console.ReadLine();
  int dogAge = Convert.ToInt32(humanAge) * 7;
  
  Console.WriteLine(dogAge);
  </code></pre>