title: Try catch in c# for divide by zero error
body: <p>How to do a try catch in c# so that I execute a sql query inside the try catch </p>
  
  <p>Sometimes the value of count is 0, and it throws a error divide by zero error. 
  So when it throws the divide by zero error I have to execute a sql statement to delete that statement and and the loop has to continue to get the value of the next record. How can i do it. </p>
  
  <pre><code>double value = (read * 100 / count);
  </code></pre>