title: How do I format numbers differently based on their value in C#?
body: <p>I have an integer that I will store in a string according to the following rules: </p>
  
  <ol>
  <li>If the number is less then 10, then it should have a <code>0</code> before it. </li>
  <li>If it larger than 10, store it without a leading 0.</li>
  </ol>
  
  <p>How can I do this in C#?</p>