// Consider changing this:try { result = 100 / num;}catch (Exception e) { result = 0;}// To this:if (num != 0) result = 100 / num;else result = 0; ' Consider changing this:Try result = 100 / numCatch (e As Exception) result = 0End Try// To this:If Not (num = 0) result = 100 / numElse result = 0End If // Consider changing this:try { result = 100 / num;}catch (e:Exception) { result = 0;}// To this:if (num != 0) result = 100 / num;else result

|