title: C# : How to calculate aspect ratio
body: <p>I am relatively new to programming. I need to calculate the aspect ratio(16:9 or 4:3) from a given dimension say axb. How can I achieve this using C#. Any help would be deeply appreciated.</p>
  
  <pre><code>public string AspectRatio(int x, int y)
  {
   //code am looking for
   return ratio
  }
  </code></pre>
  
  <p>Thanks.</p>