title: C#, If Statement, Min and Max
body: <p>Good evening; I am writing a bit of code that solves the following equation. </p>
  
  <p>X is size of device
  Y is quantity of device
  A is the denominator
  Z is the total diversified value</p>
  
  <p>(X * Y)/A = Z</p>
  
  <p>Here is the part I don't know how to accomplish. The value of A is found by the amount of Y. If Y is between 3 and 6 than A = .7, if Y is between 6 and 9 than A = .6; and so on. </p>
  
  <p>What function should I use to accomplish the above?
  Any help is greatly appreciated.</p>
  
  <p>Regards,</p>
  
  <p>Greg Rutledge</p>